Skip to content

Instantly share code, notes, and snippets.

@supafoundation
supafoundation / ionic2.image-cache.directive.ts
Created July 6, 2016 19:10 — forked from ozexpert/ionic2.image-cache.directive.ts
AngularJS2 / Ionic2 : ImageCache Directive to use with imgcache.js
import { Directive, ElementRef, Input } from '@angular/core';
declare var ImgCache: any;
@Directive({
selector: '[image-cache]'
})
export class ImageCacheDirective {
constructor (
private el: ElementRef