Ich habe zwei Module A und B. Es wird Controller in moduleA moduleAController
genanntSiehe Controller-Submodul AngularJS
Wie kann ich den Controller in moduleA
in meinem html aufrufen?
Unten ist das Code-Snippet, aber es funktioniert nicht. Ich möchte nur meinen Controller direkt in meinem HTML verwenden.
var moduleA =angular.module("ModuleA");
var moduleB =angular.module("ModuleB",["moduleA"]);
var myapp=angular.module("MyApp",["moduleB"])
<html ng-app="myapp">
<body ng-controler="moduleAController">
</body>
</html>