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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -