I used $scope but my array is not displayed. I came from knockoutjs and this is really strange.
http://jsfiddle.net/Yiping/4hu9eaoj/
angular.module('app', []).controller('T', function ($scope) {
$scope.Test = "AAA";
$scope.todos = [{
text: 'learn angular',
done: true
}, {
text: 'build an angular app',
done: false
}];
});
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<div ng-app="app">
<div ng-controller="T">{{Test}}
<ul class="unstyled">
<li ng-repeat="todo in T.todos"> <span>{{todo.text}}</span>
</li>
</ul>
</div>
</div>