I am using angular JS with Typesscript . But getting error " Property 'datepicker' does not exist on type 'IAugmentedJQuery'. " . Please advice how to resolve this error ?
angular.element('input#delegate-from-date').datepicker({
thanks in advance !!
You can create a datepicker.d.ts
file in your project with the following contents:
interface IAugmentedJQuery {
datepicker:any;
}
Some tips on migrating :
https://basarat.gitbooks.io/typescript/content/docs/types/migrating.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.