Tuesday, May 28, 2024
 Popular · Latest · Hot · Upcoming
104
rated 0 times [  111] [ 7]  / answers: 1 / hits: 16668  / 10 Years ago, fri, august 1, 2014, 12:00:00

I just started learning AngularJS. I want to implement a page for editing user info by showing the old info in the input field on the page. whenever the user want to update info they can see the old info displayed in the input box and they can change the value which will be stored in ng-model. I used before without ng-model and it works



<input type=text value={{event_detail.title}} class=inputbox form-control>


However it doesn't work with data-ng-model



<input type=text value=event_detail.title required id=title name=title class=inputbox form-control data-ng-model=eve.title placeholder=Title>


is there anyway to solve this problem?


More From » html

 Answers
15

you dont need value



<input type=text ng-model=event_detail.title class=inputbox form-control>


OR



<input type=text ng-model=event_detail.title required name=title 
class=inputbox form-control placeholder=Title>

[#69953] Thursday, July 31, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shannon

Total Points: 606
Total Questions: 106
Total Answers: 111

Location: Lesotho
Member since Thu, Jun 30, 2022
2 Years ago
;