Created
December 20, 2017 23:19
-
-
Save natmegs/771bae6dcc0411dbd25b8be366e51ca2 to your computer and use it in GitHub Desktop.
Add more controls to view
This file contains 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
<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> | |
<button *ngIf="hasDynamicComponents" (click)="removeComponent()">Remove Component</button> | |
<button *ngIf="hasDynamicComponents" (click)="clearComponents()">Clear All</button> | |
<ng-container #container></ng-container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment