I'm in the process of developing an angular2(rc-5)
app using typescript. I recently created a loader component with the intention of opening a modal using jQuery within a typescript class function. However, I'm running into issues where it can't seem to locate the $
and modal function.
import { Component, Input } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'app-loader',
templateUrl: 'loader.component.html',
styleUrls: ['loader.component.css']
})
export class LoaderComponent {
constructor() { }
@Input() message = "finally inside child scope.";
showLoader(){
$("#loaderModal").modal('show'); // error on this line
}
}
Error Report: Error:- Property 'modal' does not exist on type 'ElementFinder'. https://i.sstatic.net/WbAnE.png
Thank you for any assistance provided.