1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1 1 1 1 1 | (function() { 'use strict'; function versionDirective(version) { return { restrict: 'A', /*jshint unused:false*/ link: function(scope, elm, attrs) { elm.text(version); } }; } angular.module('common.directives.version', []) .directive('appVersion', versionDirective); })(); |