2.5.3
https://jsfiddle.net/50wL7mdz/77812/
Click the print link
i want to print "Print Me"
it will need to click second time only it change the content
change data don't update DOM immediately, you need execute window.print like this:
printNow(value){
this.print = value;
this.$nextTick(() => {
window.print();
});
}
What @anhulife said 馃檪
change data don't update DOM immediately, you need execute
window.printlike this:printNow(value){ this.print = value; this.$nextTick(() => { window.print(); }); }
It works!!!!!!!!
Most helpful comment
change data don't update DOM immediately, you need execute
window.printlike this: