These are chat archives for angular/angular-2-ionic-2

20th
May 2016
cesco
@cescoferraro
May 20 2016 19:25
@trescenzi I got it to work with Hammer.js
something like
export class PhotoComponent implements OnInit {
    @Input() item;
    @Input() index;

    constructor(private _el:ElementRef) {
    }

    ngOnInit() {
        Hammer(this._el.nativeElement).on("press", event => {
            this.photoswipe();
        });
        Hammer(this._el.nativeElement).on("tap", event => {
            this.photoswipeAll();
        });
    }