Settings manager for angular
$ component install notablemind/angular-settings
I want to do it ... but I'm not yet sure of the method.
Maybe use angular-ui? Honestly, I'm a little wary of depending on large projects like that, though. This should be small and modular.
Currently logic + presentation are together.
Setup the angular factory for the given settings manager. It will then be available as the "settings" factory.
Plugin:
{
validator: function (scope, ctrl) {
return function (value) { return value; };
}
template: str. This is rendered with the setting scope, with vbls
- setting: {setting obj}
- validate: fn
init: function (scope, element, attrs) -> initialize stuff
}
Plugin components are not to register themselves. They are, by convention, to expose this plugin object as the module.exports.