ANGULARJS bidirectional binding
1<! DOCTYPE html>234<meta charset= "UTF-8" >5<meta name= "viewport" content= "Width=device-width, initial-scale=1, maximum-scale=1, User-scalable=no" >6<title>index</title>7<link href= "{$Think. Const. Cssurl}bootstrap.min.css "rel=" stylesheet "type=" Text/css "/>8<script src= "{$Think. Const. Js}jquery.min.js "type=" Text/javascript "></script>9<script src= "{$Think. Const. Js}bootstrap.min.js "type=" Text/javascript "></script>Ten<script src= "{$Think. Const. Js}angular.min.js "type=" Text/javascript "></script> One<link href= "{$Think. Const. Cssurl}home/index.css "rel=" stylesheet "type=" Text/css "/> A -<body ng-app= "MyApp" ng-controller= "Myctrl" > -<divclass= "Container" > theclass= "Page-header" > Front-end technical solutions -<form action= "" > -<divclass= "From-group" > -<label for= "" > Please leave a message:</label> +<input type= "Text"class= "Form-control" ng-model= "mess" > -</div> +<divclass= "Well" > Message content: <span ng-bind= "Mess" ></span></div> A</form> at$Think. Const. Homeimg}/01.png "/> -</div> -</body> -<script> -Angular.module ("MyApp", []). Controller ("Myctrl",function($scope){ - $scope. Mess = "Two-way binding"; in }); -</script> to
ANGULARJS bidirectional binding