<!DOCTYPE html>
<br> var myApp1 = angular.module("myApp1", []);<br> myApp1.controller("App1Controller", ["$scope", function($scope) {<br> $scope.do1 = function() {<br> console.log(33333);<br> }<br> }]);</p> <pre><code> var myApp2 = angular.module("myApp2", []); myApp2.controller("App2Controller", ["$scope", function($scope) { $scope.do2 = function() { console.log(44444); } }]); angular.bootstrap(document.querySelector("[ng-app='myApp2']"), ["myApp2"]); angular.module("myApp", ["myApp1", "myApp2"]); </script> </code></pre> <p></body><br> </html></p>