How to render an angular template received via ajax from controller?

I was working on a project when I came across a problem. I had to call an MVC view containing an AngularJS template via ajax request and render it on the page. At first thought it seemed like a child's play, but unless you do it, you won't know it. So I gave it a go.

made with