Skip to content

Instantly share code, notes, and snippets.

@emiralp
Last active August 29, 2015 14:02
Show Gist options
  • Save emiralp/4e497a27ce0fa0bb08a2 to your computer and use it in GitHub Desktop.
Save emiralp/4e497a27ce0fa0bb08a2 to your computer and use it in GitHub Desktop.
'use strict';
/* Directives */
angular.module('myApp.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}]).
directive('parallaxer', function() {
return {
restrict: 'E',
link: function(scope, elm, attrs) {
elm.text(version);
},
controller: function() {
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment