Javascript-форум (https://javascript.ru/forum/)
-   Серверные языки и технологии (https://javascript.ru/forum/server/)
-   -   Почему то не работает скрипт (angular). Помогите плиз) (https://javascript.ru/forum/server/65578-pochemu-ne-rabotaet-skript-angular-pomogite-pliz.html)

uusseerrr 27.10.2016 10:07

Почему то не работает скрипт (angular). Помогите плиз)
 
Есть пример где он работает, ошибок вроде нету - 3 раза проверял.
<!DOCTYPE html>
<html ng-app="SampleApp">
<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.js"></script>

<title>One day data-binding</title>


<script>
var app = angular.module("SampleApp", []);

app.controller("SampleAppCtrl", function($scope) {
$scope.items = [{ name: "Item 1", value: "Value 1"},
{ name: "Item 2", value: "Value 2"},
{ name: "Item 3", value: "Value 3"}];
});


</script>

</head>
<body>
<div ng-controller="SampleAppCtrl">

<div>There are {{items.length}} items</div>

<div>
There are <span ng-bind="items.length"></span> items
</div>

<div ng-bind-template="First item: {{items[0], name}}, Second item:{{itims[1], name}}">

</div>

<div ng-non-bindable>
AngularJS users {{and}} characters fot templates
</div>

</div>




</body>
</html>


Часовой пояс GMT +3, время: 02:42.