Setting up a controller in my application based on a tutorial. The first two divs are displaying correctly but the ContraAss controller is not rendering and only shows {{info}}. What am I missing here? (NB. Probably something simple, but with limited experience and frustration over intellisense issues, I'm stuck.)
This is the XML code:
<body>
<div ng-app="ApplicationHolder">
<div>Uno: "{{holderUno}}"</div>
<div>Duo: "{{holderDuo}}"</div>
<div ng-controller="ContraAss">{{info}}</div>
</div>
</body>
And this is the JS code:
var application = angular.module("ApplicationHolder", []);
application.run(function ($rootScope) {
$rootScope.holderUno = "Blipp";
});
application.controller("ContrAss", function($scope) {
$scope.info = "This is an info carrier";
});
Output:
Uno: "Blipp"
Duo: ""
{{info}}
Initially thought it was a scope issue, but both HolderDuo and ContraAss are showing empty. Now suspecting the controller may not be recognized at all.
Any suggestions on how to fix this?