update article promise/deferred in angularjs