Skip to content

Instantly share code, notes, and snippets.

@vmasek
Last active July 24, 2018 08:04
Show Gist options
  • Save vmasek/f2043079fbdef15e4f2517f4e79ee826 to your computer and use it in GitHub Desktop.
Save vmasek/f2043079fbdef15e4f2517f4e79ee826 to your computer and use it in GitHub Desktop.
Structural directives - Dummy directive
interface DummyContext {
/* ... */
}
@Directive({
selector: '[appDummy]'
})
export class DummyDirective {
@Input()
set appDummy(value: string) {
/* ... */
}
constructor(private viewRef: ViewContainerRef,
private templateRef: TemplateRef<DummyContext>) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment