Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var compile = function($compile) {
- return function(scope, element, attrs) {
- console.log(scope);
- scope.$watch(
- function(scope) {
- return scope.$eval(attrs.compile);
- },
- function(value) {
- element.html(value);
- $compile(element.contents())(scope);
- }
- );
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement