<body ng-app="">

<div ng-init="myVar = http://www.w3tr.com/file/angular.png">
<h1>Angular</h1>
<img ng-src="{{myVar}}">
</div>

<p>This example could use the original src attribute, but with AngularJS code inside the value, it is better to use the ng-src attribute instead.</p>

</body>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.