import { Component, Directive, Input, OnInit } from '@angular/core'; declare var jQuery: any; @Component({ moduleId: module.id, selector: 'menuan-modal', inputs: ['modalID', 'modalClasses'], styleUrls: ['ng2-menuan-modal.css'], templateUrl: 'ng2-menuan-modal.html' }) export class MenuanModal implements OnInit { public modalID: string; public modalClasses: any; constructor() { } ngOnInit() {} modalModes() { return this.modalClasses; } close() { jQuery("#" + this.modalID).modal("hide"); } }