<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>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.