I really really hope not. That code is dreadful. It makes a ghost promise, uses the explicit promise construction antipattern, doesn’t propagate errors correctly, and shouldn’t even be using promises in the first place. Http gives you a perfectly good Observable, simply use that.
And it also perpetuates overuse of any
.