$timeout() doesn't update model

297 views
Skip to first unread message

wingy

unread,
Aug 15, 2012, 3:26:41 PM8/15/12
to ang...@googlegroups.com
Please look at this example: http://plunker.no.de/edit/PV2Dzv?live=preview

$timeout() doesn't update model.

Using $apply() worked.

What is the issue?

Wingy

Pawel Kozlowski

unread,
Aug 15, 2012, 3:32:08 PM8/15/12
to ang...@googlegroups.com
wingy, responded on IRC, but just for the record...

On Wed, Aug 15, 2012 at 9:26 PM, wingy <johnn...@yobistore.com> wrote:
> Please look at this example: http://plunker.no.de/edit/PV2Dzv?live=preview
>
> $timeout() doesn't update model.

it does, but in the isolated scope you've created:
http://plunker.no.de/edit/UFSaUk?live=preview
Check the console.

Cheers,
Pawel

Johnny Luu

unread,
Aug 15, 2012, 3:33:20 PM8/15/12
to ang...@googlegroups.com
Does this count as an unexpected behaviour since $apply did work for the outer scope as well?

Wingy


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en.



Eddie Huang

unread,
Aug 15, 2012, 5:22:47 PM8/15/12
to ang...@googlegroups.com
I would think so.

I ran into a related issue before https://github.com/angular/angular.js/issues/1210
Reply all
Reply to author
Forward
0 new messages