From 11b38bae4bd45631c178adf4e0b26b1272f7d289 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 27 Jan 2014 12:17:57 -0800 Subject: [PATCH] fix(directive): call attach method ofter all bindings execute Closes#431 --- lib/core_dom/block_factory.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core_dom/block_factory.dart b/lib/core_dom/block_factory.dart index ccde9117d..6b24fbc20 100644 --- a/lib/core_dom/block_factory.dart +++ b/lib/core_dom/block_factory.dart @@ -202,8 +202,7 @@ class BlockFactory { } if (controller is NgAttachAware) { var removeWatcher; - removeWatcher = scope.$watch(() { - removeWatcher(); + removeWatcher = scope.$evalAsync(() { controller.attach(); }); }