Monthly Archives: August 2013

Name your Angular controller initialization functions so they appear in call stacks

So until yesterday I would create controllers like this: However, in call stacks, the code executing inside the controller’s function just shows up as (anonymous method). If I actually name the function, then it shows up as that in the … Continue reading

Posted in Uncategorized | Leave a comment

Navigate to URLs outside of the Angular application with target=”_self”

Today I brought in Angular’s routing to a view I was working on, clicked on a link which is on the same server but outside of the Angular application, and my browser’s URL updated, but the screen was just blank. … Continue reading

Posted in Uncategorized | 1 Comment

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 , , , | Leave a comment