Adding new angular libraries

From MMS Wiki
Jump to: navigation, search

The following assumes the user is in guitar-teacher-frontend/client folder

Our build system uses Bower, so if at all possible, the library should be installed through it:

bower install <package name> -S

where -S ensures that it is written into bower.json so it gets recorded into the repo. Package is then installed into app/components/<package name>

For our application to load the library, a script tag needs to be added to app/build_blocks/(comparsion|embed|core)_js.html depending on if it is needed by only the teacher environment, embed code or both (respectively).

Also, if it is an angular module that requires access to the main angular app/module line, that line can be found at app/scripts/comparison/(app|embed).js (app for teacher environment, embed for embed).