solved angular resolve problem