Tag Archives: js

Don’t put ng-app and ng-view on the same element.

I was having a problem where Angular’s routing system wasn’t working in my application. After some experimentation I found this out: If you have an element like then links which go to known routes won’t get handled by Angular’s, rather, … Continue reading

Posted in Development | Tagged , , , , , , | Comments Off on Don’t put ng-app and ng-view on the same element.

Use ng-src with img elements

I had an an img element that looked like this: And I saw that the page was making a request for “/{{post.ImageUrl}}”. To prevent templated img elements from requesting their templated markup, use ng-src like:

Posted in Uncategorized | Tagged , , , | Comments Off on Use ng-src with img elements