You can use ng-holder
directives, which is available to triggering your holder.js
it's available here ng-holder
For short implementation, just include the directive and add the ngHolder
into your app, here is the full code of directive which i get from official github.
(function(window, angular, undefined) {
'use strict';
var module = angular.module('ngHolder', []);
module.directive('holder', [
function() {
return {
link: function(scope, element, attrs) {
if(attrs.holder)
attrs.$set('data-src', attrs.holder);
Holder.run({images:element[0]});
}
};
}]);
})(window, window.angular);
Then in your app just add ngHolder just like this
var MyApp = angular.module('MyApp', ['ngHolder']);
and in your partial template use the library like this
<img holder="holder.js/490x280/text:some text"/>
hope this help.