import { Component , ElementRef , HostListener } from '@angular/core' ; import { findReorderItem } from './item-reorder-util' ; hidden @ Component ( { selector : 'ion-reorder' , template : `<ion-icon name="reorder"></ion-icon>` } ) export class Reorder { constructor ( private elementRef ) { elementRef . nativeElement [ '$ionComponent' ] = this ; } getReorderNode ( ) { return findReorderItem ( this . elementRef . nativeElement , null ) ; } @ HostListener ( 'click' , [ '$event' ] ) onClick ( ev ) { ev . preventDefault ( ) ; ev . stopPropagation ( ) ; } }