简体   繁体   中英

Sharing code across multiple projects in AngularJS

Firstly, I am new to AngularJS. I was wondering what are the best practices around sharing common javascript code across multiple AngularJS projects?

What do the experienced AngularJS ninjas do out there?

I have heard of bower.

By creating independent modules that you will then inject wherever you need to use those features. (you will have to include the .js files too)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM