I'm trying new field in AngularJS 1,
I've tried to follow video tutorial "AngularJS Fundamentals In 60-ish Minutes" by Dan Wahlin everything is good but I don't know where issue come, when I inspect my console in Chrome, notification error show if "The controller with the name 'SimpleController' is not registered"
here my code:
<html ng-app="testAppApp">
<head>
...........
...........
</head>
<body>
<div ng-controller="SimpleController">
Search <input type="text" ng-model="name" />
<ul>
<li ng-repeat="cust in customers | filter:name | orderBy:'Name'">
{{cust.Name}} - {{cust.City}} - {{cust.Age}}</li>
</ul>
</div>
<script src="bower_components/angular/angular.js"></script>
Here my controller below the angular script
<script>
var testAppApp = angular.module('testAppApp', []);
testAppApp.controller('SimpleController', function ($scope) {
$scope.customers = [
{Name: 'Tatiana', City: 'Troy Village', Age: '23'},
{Name: 'Drew', City: 'Enor City', Age: '28'},
{Name: 'Barry', City: 'Ville', Age: '27'}
];
});
</script>
</body>
</html>
I using latest angularJS 1.x (1.6.2), and feel I've followed the tutorial with correct. But I don't know why my script error.