From 9b142c6dc7d5736acc45142a5d42c4511fc49edc Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 2 Apr 2012 02:13:32 -0400 Subject: new angular branch --- app/js/directives.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/js/directives.js (limited to 'app/js/directives.js') diff --git a/app/js/directives.js b/app/js/directives.js new file mode 100644 index 0000000..8ed47bb --- /dev/null +++ b/app/js/directives.js @@ -0,0 +1,10 @@ +'use strict'; +/* http://docs-next.angularjs.org/api/angular.module.ng.$compileProvider.directive */ + + +angular.module('myApp.directives', []). + directive('appVersion', ['version', function(version) { + return function(scope, elm, attrs) { + elm.text(version); + }; + }]); -- cgit v1.2.3-70-g09d2