import { Component,AfterViewInit } from '@angular/core';
import * as b from 'bootstrap';
import * as jQuery from 'jquery';
import { CalendarService } from './calendar.service';
@Component({
selector: 'calendar',
templateUrl: './calendar.component.html',
styleUrls: ['./calendar.component.css']
})
export class Calendar implements AfterViewInit {
ngAfterViewInit() {
jQuery(element).toolTip({title: event.title});
}
}
所以在这个jQuery(element).toolTip({title: event.title});
中,我在.toolTip
属性上收到TypeScript错误:
'toolTip'在'JQuery'“
类型上不存在