member_webapp/@overflow/shared/ui/directive/ui-template.directive.ts
crusader ea812f6e54 ing
2018-05-30 19:00:46 +09:00

18 lines
340 B
TypeScript

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;
}
}