title: Angularjs + Requirejs. Provider error
body: <p>I am new to angularjs and requirejs, and I got stuck with next error. I saw a couple of similar questions, but still can't get rid of this error.</p>
  
  <pre><code>Error: [$injector:unpr] Unknown provider: versionProvider &lt;- version &lt;- appVersionDirective
  </code></pre>
  
  <p>My app.js:</p>
  
  <pre><code> define([
       'angular',
       './controllers/index',
       './directives/index',
       './filters/index',
       './services/index'
   ], function (ng) {
       'use strict';
       return ng.module('app', [
           'ngRoute',
           'app.controllers',
           'app.filters',
           'app.directives',
           'app.services'
       ]);
  });
  </code></pre>
  
  <p>directives/index.js:</p>
  
  <pre><code>define([
      './myDirective'
  ], function () {});
  </code></pre>
  
  <p>directives/module.js:</p>
  
  <pre><code>define(['angular', '../services/module'], function (ng, services) 
  {
      'use strict';
      return ng.module('app.directives', ['app.services']);
  });
  </code></pre>
  
  <p>directives/myDirective.js:</p>
  
  <pre><code>define(['./module'], function (directives) 
  {
      'use strict';
      directives.directive('appVersion', ['version', function (version) 
      {
              return function(scope, elm, attrs) 
              {
                  elm.text(version);
              };
          }]);
  });
  </code></pre>
  
  <p>Is there some mistakes in code? or my approach is wrong? If someone can help I would appreciate it. Thanks in advance.</p>