This is what i have tried:
The script stops after pause, but does not move to next command
Go to Solution.
You can use $timeout to achieve this. Check out the AngularJS documentation for more information: AngularJS
View solution in original post