angular-swing icon indicating copy to clipboard operation
angular-swing copied to clipboard

Needs $scope.$digest()

Open barryvdh opened this issue 10 years ago • 2 comments

In your example, after adding/removing a card, the $scope.$digest() needs to be called. Otherwise changes are not reflected, at least in Angular 1.4 in my case..

barryvdh avatar Jul 07 '15 08:07 barryvdh

@barryvdh Alternatively, you can wrap your model changes in a $timeout. Not exactly sure why at the moment, but it does work.

theblang avatar Nov 04 '16 23:11 theblang

@mattblang $timeout runs $digest.

graingert avatar Feb 07 '17 17:02 graingert