angularjs - Dependency Injection in Controller instead of module -


i have main module mainapp many controllers , filter , factory. problem facing that, if put dependency in module angularfileupload in module

angular.module('mainapp', ['angularfileupload'])

as every controller linked webpage, have add angular file upload js files in every webpage , need of adding angular file upload js files in 1 webpage. if don't add js file in webpages , when access webpage app gets crashed.

please tell me solution.

angularjs using single page applications. having 1 web page. please inject angularfileupload module in app.module section & use services, factories, directives in mainapp controllers, templates injecting individual services, factories, directives using.

all webpages means didn't understood. , should use ng-view or ui-view going other state/page.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -