version-directive.js 199 B

123456789
  1. 'use strict';
  2. angular.module('myApp.version.version-directive', [])
  3. .directive('appVersion', ['version', function(version) {
  4. return function(scope, elm, attrs) {
  5. elm.text(version);
  6. };
  7. }]);