In this example why isn't the 2nd module working?
HTML
<div ng-app="My.App" ng-controller="MyController">
Hello {{ test }}
</div>
<div ng-app="My.App2" ng-controller="MyController2">
Hello {{ test2 }}
</div>
Javascript
var MyApp = angular.module("My.App", []);
var MyApp2 = angular.module("My.App2", []);
MyApp.controller("MyController", function($scope) {
$scope.test = "Bob";
});
MyApp2.controller("MyController2", function($scope) {
$scope.test2 = "Bob";
});
Result
Hello Bob
Hello {{ test2 }}