The following wording: No explicitly specified module and controller, the wording is not standardized. Changing the angular.js version will cause a bug.
1 <HTMLNg-app>2 <Head>3 <title>Differences between versions of 1.0.1-1.5</title>4 <Scriptsrc= "/js/angular-1.0.1.min.js"></Script> <!--can be displayed normally -5 <!--<script src= "/js/angular.min.js" ></script> 1.5 version not shown -6 <Script>7 8 /*Phones.js9 [Ten { One " name": "Nexus S", A " Snippet": "Fast just got faster with Nexus S.", - "Age": 0, - " imageUrl": "/img/01.png", the "id": 1 - }, - { - "name": "Motorola xoom™with Wi-Fi", + " Snippet": "The next, next Generation tablet.", - "Age": 1, + " imageUrl": "/img/02.png", A "id": 2 at }, - { - " name": "MOTOROLA xoom™", - " Snippet": "The next, next Generation tablet.", - "Age": 2, - " imageUrl": "/img/03.png", in "id": 3 - } to ] + */ - functionPhonelistctrl ($scope, $http) { the $http. Get ('/html/angular/json/phones.js'). Success (function(data) { * $scope. Phones=data; $ });Panax Notoginseng } - </Script> the <Linkhref= "/js/bootstrap-3.3.5-dist/css/bootstrap.min.css"rel= "stylesheet" /> + </Head> A <Body> the <Divclass= "Container-fluid"> + <Divclass= "Row"Ng-controller= "Phonelistctrl"> - $ <ul> $ <Ling-repeat= "Phone in phones"> - <ahref= "#{{phone.id}}">{{Phone.name}}</a> - <P>{{Phone.snippet}}</P> the </Li> - </ul>Wuyi the - </Div> Wu </Div> - </Body> About </HTML>
Attached Learning Address:
A.angularjs Chinese Community
B.ANGULARJS official website
The following article: Write a standard ...
Angular.js incorrect notation results in an error