angular.js - How to implement data binding after click event in angular?
PHP中文网2017-05-15 16:55:04
0
2
639
After clicking the OK button, the edited data will be displayed on the page. How to implement this using angular `your name: <input type="text" ng-model="yourname"/> <button>OK</button> Hello {{yourname}}!`
Then your code should look like this:
You can change ng-model to name
hello{{confirmNmae}}
Achieve value assignment in the controller