You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we could include angular-busy with the CommonJS modularization-syntax. Using your great piece of code, especially in combination with NPM, browserify and AngularJS, would be much simpler.
As an example, have a look at my angular app.js file:
Most of my 3rd party dependencies (except of the first three) are referenced with the CommonJS require - keyword. With browserify, all I need to do is to execute browserify app.js > bundle.js and all dependencies (and even more important the transitive dependencies) are loaded from NPM in the specified version and bundled to one file. No need to add the files to my index.html manually or with additional tools like Grunt/Gulp. All we need to do is the standard angular initialization.
AFAIK, it is quite easy to implement it. Add an index.js- file with the following content to your repo (example is the angular-animate dependency):
It would be great if we could include angular-busy with the CommonJS modularization-syntax. Using your great piece of code, especially in combination with NPM, browserify and AngularJS, would be much simpler.
As an example, have a look at my angular app.js file:
Most of my 3rd party dependencies (except of the first three) are referenced with the CommonJS
require
- keyword. With browserify, all I need to do is to executebrowserify app.js > bundle.js
and all dependencies (and even more important the transitive dependencies) are loaded from NPM in the specified version and bundled to one file. No need to add the files to myindex.html
manually or with additional tools like Grunt/Gulp. All we need to do is the standard angular initialization.AFAIK, it is quite easy to implement it. Add an
index.js
- file with the following content to your repo (example is the angular-animate dependency):It is also an investment into the future, as the module-concept will be an important part of ECMAScript 6.
Let me know if I can help u!
The text was updated successfully, but these errors were encountered: