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
(consider writing you angular packages based on angularite)
...
So angularite is suitable for production:
Choose packages depending on your needs.
Will not waste precious loading time on JS code you never use.
API
Angularite.setTemplateDelimeter(start, end)
Set the delimeter used in template interpolation. The default is [[ and ]].
Angularite.module(modname, deps) -> mod
Define an angular module and it's dependencies. Returns an angular module object.
Subsequent calls with same modname will return the defined module object. So you can not re-define dependencies after module has been initialized, it's the same behavior as angular.module().
mod.setTemplateDelimeter(start, end)
Override template delimeter in specific module.
Usage
var app = Angularite.module('myApp', [xxx', 'yyy']);
app.controller(...);
app.factory(...);
...
Features
You can define multiple modules, which is the recommended way coding in angular.
Write your addon based on angularite
The best practise is make a weak dependency on angularite and other bridges.