Skip to content

Instantly share code, notes, and snippets.

@natmegs
Created December 20, 2017 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natmegs/5e3f23e1ff0f419a03904b0560c430fb to your computer and use it in GitHub Desktop.
Save natmegs/5e3f23e1ff0f419a03904b0560c430fb to your computer and use it in GitHub Desktop.
Add input to view
<label for="name">Enter Component Name</label>
<input type="text" id="name" [(ngModel)]="name" placeholder="Enter Dynamic Component Name">
<br />
<button (click)="addComponent()">Add Component</button>
<ng-container #container></ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment