import { IAugmentedJQuery } from 'angular';

export class TileAbstractController {

  public link: string;
  public image: string;
  public images: any;
  public headline: string;
  public icon: string;

  constructor(
    public $element: IAugmentedJQuery
  ) {
    if ($element) {
      $element.bind('click', this.clickHandler.bind(this));
    }
  }

  public clickHandler(): void {
    location.href = this.link;
  }

}
