wr-angular-image

Simple angular module to include <img> and bind its src attribute to given model property.

Usage no npm install needed!

<script type="module">
  import wrAngularImage from 'https://cdn.skypack.dev/wr-angular-image';
</script>

README

wr-angular-image

Simple angular module to include <img> and bind its src attribute to given model property.

Install

npm install wr-angular-image

Usage

....
<script src="wr-angular-image/dist/wr-angular-image.min.js"></script>
....
<div wr-image="yourModel.imageUrlProperty"></div>
....
angular.module('yourModule', ['wr-image'])