Open blanthor opened 4 years ago
I'm trying to run Scott Allen's PluralSight training on AngularJS,. It appears difficult to add angular.js libraries, and the links appear to be broken. My code looks like the tutorials but doesn't run. For instance:
Index.html: <!DOCTYPE html> <html ng-app> <head> `
<!DOCTYPE html>
<html ng-app>
<head>
<script src="script.js"></script>`
</head> <body ng-controller="MainController"> <h1>{{ message }}</h1> </body> </html>
</head>
<body ng-controller="MainController">
<h1>{{ message }}</h1>
</body>
</html>
script.js: var MainController = function($scope) { $scope.message = "Hello"; };
var MainController = function($scope) { $scope.message = "Hello"; };
I'm trying to run Scott Allen's PluralSight training on AngularJS,. It appears difficult to add angular.js libraries, and the links appear to be broken. My code looks like the tutorials but doesn't run. For instance:
Index.html:
<!DOCTYPE html>
<html ng-app>
<head>
`</head>
<body ng-controller="MainController">
<h1>{{ message }}</h1>
</body>
</html>
script.js:
var MainController = function($scope) { $scope.message = "Hello"; };