<!DOCTYPE html>
<html>
<script src="/lib/angular-1.4.8.min.js"></script>
<body ng-app="">
<div ng-init="myVar = 'pic_angular.jpg'">
<h1>Angular</h1>
<img ng-srcset="{{myVar}}">
</div>
<p>This example could use the original srcset attribute, but with AngularJS code inside the value, it is better to use the ng-srcset attribute instead.</p>
</body>
</html>