Ankit  Shukla

Ankit Shukla

  • NA
  • 681
  • 110.1k

How to use 2 controllers in angularjs

Jul 26 2017 6:12 AM
Hello,
 
I am using controller like this (with dependency):
 
" angular.controller('StaffController', function ($scope, $http) {  }" 
 
for Inserting data.
 
I need to add 1 more controoker like this (without dependency):
 
" angular.controller('StaffController', function ($scope) { }"  
 
how can I use both of them ?
 

Answers (6)