InterviewSolution
| 1. |
How To Initialize Js Functions In Vue Js (materialize Modal Popup Auto Initialize)? |
|
Answer» I have called the same FUNCTION from Vue JS updated EVENT updated() { this.testingmodel(); }, But you have to avoid the errors by using try catch on calling function methods:{ testingmodel:function(){ try { $('#firstlogintour').modal('open'); } catch(err) { console.log(err); } } } Vue Updated Scenario: This function will CALL up to when the function or METHOD loads without failure or any Error. I have called the same function from Vue Js updated event updated() { this.testingmodel(); }, But you have to avoid the errors by using try catch on calling function methods:{ testingmodel:function(){ try { $('#firstlogintour').modal('open'); } catch(err) { console.log(err); } } } Vue Updated Scenario: This function will call up to when the function or method loads without failure or any Error. |
|