title: How does angularjs get version number from this directive
body: <p>How does angularjs get version number from this directive ......</p>
  
  <pre><code>    angular.module('myApp.directives', []).
    directive('appVersion', ['version', function(version) {
      return function(scope, elm, attrs) {
        elm.text(version);
      };
    }])
  </code></pre>