html5 - Dynamically add textbox in HTML Page through Angular JS -


i want dynamically add text-box in html page when user press button. , after want respective field value or field value.

i tried doing ng-repeat not work. can tell me how achieve this.

i indeed use ng-repeat, , push new object onto array. maybe this?

<button ng-click="textfields.push("")">add</button> <textarea ng-repeat="val in textfields" ng-model="val"></textarea> 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -