I am storing the the source string of an image to be rendered in HTML in the AngularJS controller, however it yields a 404 before the Angular controller is initialized.
If someone is searching the solution for styling background-image then use this:
...