arrow_back Back to Notebook
angular/angularjs
angular/angularjs
January 21, 2019

Setting the src for html elements

Setting the src attribute for elements is different if you need to reference a AngularJS variable.

What you cannot do

You cannot use <img src="{{path}}">

What you can do

Instead you need to use <img ng-src="{{path}}" />

More Info

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch