ng-content select bound variable

前端 未结 3 576
难免孤独
难免孤独 2020-12-03 10:36

I\'m trying to create a form builder using angular 2. An very basic example is as follows:

this.fields = [{name: \'Name\', type: \'text\'}, {name: \'Age\',          


        
3条回答
  •  执念已碎
    2020-12-03 11:04

    You can do this already if you wrap the content with a