-
Notifications
You must be signed in to change notification settings - Fork 3
Libraries
Jesper Lindström edited this page Jun 8, 2014
·
1 revision
Libraries are located in app/libraries/*.js
and provide functionality either by directly performing actions or by providing public methods, that controllers can access. Controllers would be able to access the following method below via app.lib.myLibrary.myPublicMethod()
.
app.lib.myLibrary = function() {
var myPrivateMethod = function() {
return 'Hello world';
};
this.myPublicMethod = function() {
alert('Hello world');
};
};