1 2 3 4 5 6 7 8 9 10 11
import { Component, Input } from '@angular/core'; @Component({ selector: 'my-loader', styleUrls: [ 'app/angular/videos/loader.component.css' ], templateUrl: 'app/angular/videos/loader.component.html' }) export class LoaderComponent { @Input() loading: boolean; }