All Questions
Tagged with angularjs-timeout angularjs-controller
3 questions
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'...
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 ...
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 ...