Angular ngLoad directive
Install via bower
bower install ng-load --save
Add a <script>
to your html
<script src="bower_components/ng-load/ng-load.js"></script>
// add 'ngLoad' as dependency to your module
var yourModule = angular.module("yourModule", ['ngLoad']);
You can add the ng-load
directive in <img>
tags
<img src="beautifulImage.jpg" ng-load="someFunction()" alt="" />