I'm (relatively) new to AngularJS, and am in the process of trying to do things "right" in my application. I have a wrapper for all accesses to the API my app communicates, which is currently implemented as a Service, but I'd like to implement it (and other stuff too) as a Provider, to be able to make use of the configurability this offers.
However, I'm running into a problem, which (I think) is related to the order in which JS files are loaded into gulp - specifically, here; app.js is loaded in the project's index.html before all of the developer's own scripts (including Providers).
I'm still a bit of a novice, but I would have thought that providers would have to be loaded before app.js so that they could be referenced within app.js?
Sorry if this is incorrect, I just want to understand :)
I'm (relatively) new to AngularJS, and am in the process of trying to do things "right" in my application. I have a wrapper for all accesses to the API my app communicates, which is currently implemented as a Service, but I'd like to implement it (and other stuff too) as a Provider, to be able to make use of the configurability this offers.
However, I'm running into a problem, which (I think) is related to the order in which JS files are loaded into gulp - specifically, here;
app.js
is loaded in the project'sindex.html
before all of the developer's own scripts (including Providers).I'm still a bit of a novice, but I would have thought that providers would have to be loaded before
app.js
so that they could be referenced withinapp.js
?Sorry if this is incorrect, I just want to understand :)