<! DOCTYPE html><script src= "Js/jquery-1.11.2.min.js" ></script><script src= "http://apps.bdimg.com/libs/angular.js /1.4.6/angular.min.js "></script>varApp = Angular.module (' myApp '), []); App.controller (' Myctrl ',function($scope) {$scope. Names= ["Google", "Runoob", "Taobao"];});</script><p> This example demonstrates the use of the ng-options directive. </p>Name:<input ng-model= "name" ng-init= "Name= ' Zhang San '" Placeholder= "Zhang San" >The name you entered is:<!--{{name}}--><span ng-bind= ' name ' ></span><br>---------------------------------------- ----------<br><div ng-init= "pname=[' Zhang San ', ' John Doe ', ' Harry ']" > Name: <li ng-repeat= "name in PName" >{{name}} </li></div>--------------------------------------------------<br><div ng-init= "Ren={one: ' Jone ', both: ' Kuke '} > name:{{ren.two}}</div>--------------------------------------------------<br> <div ng-init= "name2=[{name: ' Jani ', Country: ' Norway '},{name: ' Hege ', Country: ' Sweden '},{name: ' Kai ', Country: ' Denmark '}] ">Loop Result:<li ng-repeat= "y in name2" >{{y.name+ ', ' +y.country}}</li></div>--------------------------------- -----------------<br><div ng-init= "y=2; M=3 "></div><input type=" number "ng-model=" Y "><input type=" number "ng-model=" M ">Calculation Result: {{Y*M}}<script>varApp = Angular.module (' MyApp '),[]); App.directive (' Hello ',function(){ varop={restrict:"ACE", Template:"Hello,world" } returnop; }) </script><div hello></div><div class= "Hello" ></div>Angular JS Random Notes