I wanted to use jQuery's property printThis()
to print my view in angular
But it is giving me this error.
Property 'printThis' does not exist on type 'JQuery'.
I wanted to use jQuery's property printThis()
to print my view in angular
But it is giving me this error.
Property 'printThis' does not exist on type 'JQuery'.
For class , use the bellow code ,
$(".demo").printThis();
For Id , use the below code ,
$('#demo-one, #demo-two, #demo-three').printThis({
importCSS: false, // option
header: "<h1>Look at all of my Demo's!</h1>" //option
});
For more information . Visit this document