Jack
Member since Jul 13, 2014
- Profile: /members/12110-jack.htm
- Comments: 3
Recent Blog Comments By Jack
-
$scope.$evalAsync() vs. $timeout() In AngularJS
Posted on Jul 15, 2014 at 6:04 AM
@Kelly, But if function will be called asynchronously, in this case $scope.$digest doesn't fit me. I mean that scope.$digest will trigger the digest cycle, but function passed to the evalAsync queue could be called inside $timeout func, within the next tick.... read more »
-
$scope.$evalAsync() vs. $timeout() In AngularJS
Posted on Jul 15, 2014 at 4:03 AM
Ben, how controller or directive with $evalAsync can be tested? In case of usage $timeout I can use $timeout.flush() in my tests to force an execution of delayed actions.... read more »
-
Directive Link, $observe, And $watch Functions Execute Inside An AngularJS Context
Posted on Jul 13, 2014 at 9:23 AM
@Larvosrolka, Did you solve your problem? I think you can use scope.watch inside your link function.... read more »