Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('app').directive('simpleDirective', function() {
- return {
- // controller etc..
- compile: function(el, attrs) {
- //console.log(el.context.attributes);
- //console.log(attrs);
- console.log(el);
- console.log(el.context);
- //console.log(el);
- //console.log(el.context === el.0)
- // do some work
- return function(scope, el, attrs, ctrl, transclude) {
- // implementation
- }
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement