Created
July 31, 2016 17:54
-
-
Save ronapelbaum/5da7135fe9846996a9e801fd716bfb6b to your computer and use it in GitHub Desktop.
angular directive + jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app',[]) | |
.directive('dir1',function(){ | |
return { | |
template: '<div id="myId">Hello World!</div>', | |
link: function(scope, element){ | |
$('#myId').css('color','green'); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment