add article promise/deferred in angularjs