October 2017
Intermediate to advanced
280 pages
6h 50m
English
The constructor declares two private properties: el of the ElementRef type and overlay of the Overlay type. The Overlay class implements logic to manage the overlays of the tooltips and will be injected using the DI mechanism of Angular. In order to declare it as available for injection, we will need to declare the top-level component in the following way:
@Component({
selector: 'app',
templateUrl: './app.html',
providers: [Overlay],
// ...
})
class App {}
Read now
Unlock full access