<html>
<body ng-app="testApp" ng-controller="testControl">
<ul>
<li ng-repeat="x in phones">
{{x.name}}<br />{{x.title}}
</li>
</ul>
</body>
</html>
JS文件错误而载入角JS控制器
var testApp = angular.module('testApp', []);
testApp.controller('testControl', function($scope){
$scope.phones = [
{name: 'iPhone 6', title: 'Apple created'},
{name: 'Samsumg Galaxy 2', title: 'Samsung created'}
];
});
JS小提琴
与其他问题不一样吗? http://stackoverflow.com/questions/28053422/angular-js-control-not-rendering – PSL 2015-01-20 19:43:28