Linked Questions
28 questions linked to/from How to create separate AngularJS controller files?
0
votes
2
answers
1k
views
Angular: How to split (divide) controller's script? [duplicate]
I just recently build a web based app with angular. I really love how angular handle Model-View-Controller, so I build my controller to handle button click event, datepicker changed event, etc while ...
3
votes
1
answer
317
views
understanding controllers and modules angularJs [duplicate]
I have this code in app.js, and work fine. I want to put each controller in a diferent file, but if put the controller in other file. I recived the message: Argument 'visorController' is not a ...
24
votes
4
answers
25k
views
AngularJS: How do I create controllers in multiple files
I'm trying to split my controllers into multiple files, but when i try to register them at my module im getting an error:
groupcontroller.coffee
app = angular.module('WebChat', []);
app.controller '...
9
votes
1
answer
4k
views
How to define modal controllers in their own file?
My Angular application has a number of modals, and I have AngularUI to provide the modal directive.
http://angular-ui.github.io/bootstrap/
So far I have several main controllers, and these are all ...
1
vote
1
answer
3k
views
Using Multiple Angular Controllers with Yeoman
I'm building a practice app in Angular using Yeoman. I'm trying to keep my controllers in separate files.
However, when going to my "register" route, it throws an error in Chrome dev tools:
"Error:...
2
votes
2
answers
2k
views
Splitting AngularJS controllers into multiple files
I have a cross-platform enterprise app built using Onsen UI and AngularJS. However, the app is fast growing in size and is becoming confusing and difficult to manage. Up to now I have been able to ...
5
votes
2
answers
672
views
separate AngularJS controller files in Laravel&Angular Project
I try this solution
https://stackoverflow.com/a/20087682/9246297
https://stackoverflow.com/a/34729515/9246297
and then I got this error
GET http://localhost:8000/js/TaskController.js net::...
0
votes
1
answer
3k
views
angularjs - multiple app .js files with its own controller
I want to develop a site with main page that route to several other pages. All page will have their own app.js file with their own .controller for easy code management.
pages.html
<html ng-app="...
0
votes
2
answers
3k
views
Angularjs: How to create separate files for the main-module and the main-controller
I've the same issues as in how-to-create-separate-angularjs-controller-files, but it seems to be a little bit more complicated: I want to separate my module declaration and the "MAIN-Controller" into ...
0
votes
2
answers
2k
views
Partial view ng-click not working when using two different controller files
I am working on MVC4 with angular JS and using ng-include to call a partial view inside my main view. Issue comes when I am trying to click a button inside my partial view.
I have two different ...
2
votes
2
answers
1k
views
How to bind controllers contained in a folder to views in angularjs dynamically
I have a controller in a folder named controller at the root.
I have view that I want to attach to the corresponding views when the route changes. I am using angular-ui-router.
controllers/one.js
...
1
vote
3
answers
2k
views
'Uncaught TypeError: undefined is not a function' when putting controllers/services in a separate js file
I am trying to separate my controllers and services (previously all in my one app.js file) into separate js files. However I am getting a Uncaught TypeError: undefined is not a function from the first ...
1
vote
2
answers
451
views
Angular can't find my controllers when split into separate files
I was following the answer posted for a similar question here: How to create separate AngularJS controller files?
However I'm still not able to split my controllers into separate files. I've started ...
0
votes
2
answers
743
views
Separate angularJS controller Result in error
I know this have been asked in the past in the following questions:
How to create separate AngularJS controller files?
Separate AngularJS Controllers Into Separate Files
But however am not being ...
1
vote
1
answer
947
views
spPageContextInfo is not defined
I am trying to add userName use AngularJs into Sharepoint. Also, i should have a feature that I should view all the userName from SharePoint list. But i keeping getting error says '_spPageContextInfo ...