plugins: Create a plugins service with a Plugin definition
This commit is contained in:
parent
7db8e31a7f
commit
1fd6e1b0b6
1 changed files with 15 additions and 0 deletions
|
@ -1,7 +1,22 @@
|
|||
var plugins = angular.module('plugins', []);
|
||||
|
||||
|
||||
plugins.service('plugins', function() {
|
||||
|
||||
this.Plugin = function(contentForMessage) {
|
||||
|
||||
return {
|
||||
contentForMessage: contentForMessage,
|
||||
exclusive: false,
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
plugins.factory('pluginManager', ['youtubePlugin', 'urlPlugin', 'imagePlugin', function(youtubePlugin, urlPlugin, imagePlugin) {
|
||||
|
||||
|
||||
var plugins = [youtubePlugin, urlPlugin, imagePlugin]
|
||||
|
||||
var hookPlugin = function(plugin) {
|
||||
|
|
Loading…
Reference in a new issue