Replacing jquery http call with angular http call.