Skip to content

Instantly share code, notes, and snippets.

View awojtczyk's full-sized avatar
🐨

Andrzej Wojtczyk awojtczyk

🐨
View GitHub Profile
@ozexpert
ozexpert / ionic2.image-cache.directive.ts
Last active February 21, 2024 11:13
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