There is a structul directive:
@Directive({ selector: \'[loading]\', }) export class LoadingDirective { loadingFactory: ComponentFact