title: Calling factory service from inside decorator in Angular JS
body: <p>Using the <a href="https://github.com/fraywing/textAngular" rel="nofollow">TextAngular plugin</a> and trying to <a href="https://github.com/fraywing/textAngular/wiki/Customising-The-Toolbar" rel="nofollow">customize a toolbar</a>, I'm trying to inject my own service (<code>LinkService</code>) into the module but I get an <code>[$injector:unpr] Unknown provider</code> error.</p>
  
  <pre><code>module.config(function($provide, LinkService){
      $provide.decorator('taOptions', ['taRegisterTool', '$delegate', function(taRegisterTool, taOptions){
          // $delegate is the taOptions we are decorating
          // register the tool with textAngular
          taRegisterTool('colourRed', {
              iconclass: "fa fa-square red",
              action: function(){
                  this.$editor().wrapSelection('forecolor', 'red');
                  LinkService.createLink(/*...*/)
              }
          });
  
  
          // add the button to the default toolbar definition
          taOptions.toolbar[1].push('colourRed');
          return taOptions;
      }]);
  });
  </code></pre>
  
  <p>How to do I inject my service into this config?</p>