+ 1
Can we add more than one controller function in Angular JS?
How we can add one or more function on angular js and java script?
5 ответов
+ 1
I can't understand ur ans dude..
+ 1
Thanks bro then wat about
var app=app.module function
0
In my opinion, you can
Just use ng-controller="name"
0
<div ng-controller="ctrl1">
</div>
<div ng-controller="ctrl2">
</div>
0
var app = app.module("appName", []);
app.controller("ctrl1", function($scope) {
}):
app.controller("ctrl2", function($scope) {
}):