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
603 views

AngularJS cannot seem to take a variable duration for a $timeout

I am trying to implement a function within the controller which will be incharge of showing various notification to the user. the problem is that I want the duration to be a function parameter, and ...
Oleg Belousov's user avatar
9 votes
1 answer
7k views

What's the right way to wait for ng-init values to be set?

I have an "ng-init" directive in my HTML that initializes the value of "data.id" in my Angular.js data model. Let's say for now that I can't change how this works. Now, I want to make an HTTP request ...
Eugene Osovetsky's user avatar