added code for angularpromise-1