Organizational Research By

Surprising Reserch Topic

angularjs promise executes only once


angularjs promise executes only once  using -'angularjs'

Is any way that $promise can execute multiple times or any alternate in angular.

Refer below code.
Sample Code:-

promise.then(function(greeting) {
  alert('Success: ' + greeting);
}

...

if () {
     resolve('Hello, ' + name + '!');
} else {
     reject('Greeting ' + name + ' is not allowed.');
}

    
asked Oct 13, 2015 by android_master
0 votes
3 views



Related Hot Questions



Government Jobs Opening


...