I'm using AngularJS 1.5.0
Here's my HTML:
<!DOCTYPE html>
<html ng-app="app">
<head>
</head>
<body ng-controller="TestController as controller">
{{controller.test}}
<script src="libraries/angular/angular.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>
Here's my app.js:
var app = angular.module("app", []);
app.controller("TestController", function() {
var test = "Hello World";
// window.alert(test); THIS ALERT IS WORKING
});
In my index, it doesn't display anything. However, alerting the test variable does work.