member_webapp/@overflow/shared/ui/directive/ui-template.directive.ts
crusader 5628f7a6c4 ing
2018-05-31 15:48:49 +09:00

19 lines
370 B
TypeScript

import { Directive, Input, Output, TemplateRef } from '@angular/core';
@Directive({
selector: '[ofUITemplate]',
})
export class UITemplateDirective {
@Input() type: string;
// tslint:disable-next-line:no-input-rename
@Input('ofUITemplate') name: string;
constructor(public template: TemplateRef<any>) { }
getType(): string {
return this.name;
}
}