Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
105k views

In an Angular.js controller's scope function code doesn't run below a $timeout statement inside

I have a button for which I have set ng-click="refresh()". The console logs before the timeout function logs correctly but the console log inside the $timeout block and after the block doesn'...
cmgchess's user avatar
  • 10.3k
0 votes
1 answer
902 views

AngularJS: $timeout within directive's controller using "this"

Not sure if everything is wired up here correctly. The objective is to call the nextSlide function, for it to change the class, wait a second, then incrament the current picture by 1, and then change ...
Cameron Rodriguez's user avatar
1 vote
1 answer
3k views

passing objects to $timeout

Is there something special I need to do to access objects inside $timeout functions? I get errors saying routes is undefined when I try and access it in the $timeout function, but outside the $...
andro1d's user avatar
  • 558