From 8611ebe6a0d61092c1e66eb636e817c1445fd73f Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 7 Oct 2011 14:11:32 -0700 Subject: fix(compiler): linking function should call $digest The linked scope should be $digest-ed but only if a $digest isn't already running on it. --- src/Compiler.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Compiler.js b/src/Compiler.js index a355444b..adbab7e7 100644 --- a/src/Compiler.js +++ b/src/Compiler.js @@ -203,6 +203,7 @@ Compiler.prototype = { scope.$element = element; (cloneConnectFn||noop)(element, scope); template.link(element, scope); + if (!scope.$$phase) scope.$digest(); return scope; }; }, -- cgit v1.2.3