Created
September 30, 2017 09:59
-
-
Save adrianfaciu/753f02ad6bb07d6c2fbd1bdebc7aded3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class NgLoopDirective implements OnInit { | |
constructor(private container: ViewContainerRef, | |
private template: TemplateRef<any>, | |
) { } | |
ngOnInit(): void { | |
this.container.createEmbeddedView(this.template); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment