Guest User

Untitled

a guest
Feb 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. @Component({
  2. selector: 'grid-component',
  3. template: `
  4. <div class="row" *ngFor="let cellComponentType of cellComponentTypes">
  5. <<div class="col-lg-12">
  6. <grid-cell [componentType]="cellComponentType"></grid-cell>
  7. </div>
  8. </div>
  9. `
  10. })
  11. export class Grid {
  12. @Input() componentTypes: any;
  13. cellComponentTypes: any[] = [];
  14. addDynamicCellComponent(selectedComponentType:any) {
  15. this.cellComponentTypes.push(selectedComponentType);
  16. }
  17. }
Add Comment
Please, Sign In to add comment