Open
Description
Add declarative interface:
alight.namespace('ns')
.directive('name', {link})
.directives({
dirName: {link}
})
.controller(name, fn)
.controllers({
ctrlName(scope) {/*...*/}
});
// filters are the same
Namespace create alight new namespace or use existing. It is pretty and simple.
Extended example:
(function() {
'use strict';
alight.namespace('ns')
.controllers({userCtrl, settingsCtrl});
function userCtrl() {}
function settingsCtrl() {}
})();
Metadata
Metadata
Assignees
Labels
No labels