Advertisement
imehesz

Angular 1.2 directive

Apr 15th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. webApp.directive("runeDirective", function(){
  2.   return {
  3.     restrict: "C",
  4.     scope: {
  5.       runeText: "=",
  6.       direction: "="
  7.     },
  8.     template: '<div><!-- directive view logic goes here --></div>',
  9.     replace: true,
  10.     link: function(scope,element) {
  11.       // main logic goes here ...
  12.     }
  13.   }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement