in angular execute only the last promise