When I add ng-controller to any div, the {{ }} are rendered as such.
<div id="1">
<div class="ExplorerApp">
<div>
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
<br>
Full Name: {{firstName + " " + lastName}}
</div>
<div class="NavigationPane" ng-controller="ExplorerController">
<div>Pane data: {{myData.test}}</div>
</div>
</div>
</div>
The first div works fine but the second one doesn't. Following is my js code:
var app = angular.module('Explorer', []);
angular.bootstrap(document.getElementById("1"), ["Explorer"]);
app.controller("ExplorerController", function ($scope) {
$scope.myData = {};
$scope.myData.test = "Hello Angular";
});
document.getElementById(self._compID)?1, not#1. Terrible ID value btw