+ 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?

13th Apr 2019, 8:05 PM
Hari Krishnan. T
Hari Krishnan. T - avatar
5 ответов
+ 1
I can't understand ur ans dude..
21st Apr 2019, 8:49 AM
Hari Krishnan. T
Hari Krishnan. T - avatar
+ 1
Thanks bro then wat about var app=app.module function
21st Apr 2019, 9:25 AM
Hari Krishnan. T
Hari Krishnan. T - avatar
0
In my opinion, you can Just use ng-controller="name"
21st Apr 2019, 8:47 AM
Kartik
Kartik - avatar
0
<div ng-controller="ctrl1"> </div> <div ng-controller="ctrl2"> </div>
21st Apr 2019, 9:11 AM
Kartik
Kartik - avatar
0
var app = app.module("appName", []); app.controller("ctrl1", function($scope) { }): app.controller("ctrl2", function($scope) { }):
21st Apr 2019, 9:33 AM
Kartik
Kartik - avatar