Advertisement
Guest User

Untitled

a guest
Nov 13th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. angular.module('app').directive('simpleDirective', function() {
  2. return {
  3. // controller etc..
  4. compile: function(el, attrs) {
  5.  
  6. //console.log(el.context.attributes);
  7.  
  8. //console.log(attrs);
  9.  
  10. console.log(el);
  11. console.log(el.context);
  12. //console.log(el);
  13. //console.log(el.context === el.0)
  14.  
  15.  
  16. // do some work
  17. return function(scope, el, attrs, ctrl, transclude) {
  18. // implementation
  19. }
  20. }
  21. }
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement