diff --git a/js/plugins.js b/js/plugins.js index 76e7ee7..4c7d88b 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -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) {