member_webapp/@overflow/shared/ui/directive/ui-template.directive.ts

18 lines
340 B
TypeScript
Raw Normal View History

2018-05-30 10:00:46 +00:00
import { Directive, Input, Output, TemplateRef } from '@angular/core';
@Directive({
selector: '[ofUITemplate]',
})
export class UITemplateDirective {
@Input() type: string;
@Input('ofUITemplate') ofUITemplate: string;
constructor(public template: TemplateRef<any>) { }
getType(): string {
return this.ofUITemplate;
}
}