Chapters
48 Chapters
|
5:05:52
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
03.
Vue Instance & Dynamic Data
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
This course is also built to work with Vue 3!
What JavaScript libraries does this tutorial use?
// package.json
{
"devDependencies": {
"@symfony/webpack-encore": "^0.30.0", // 0.30.2
"axios": "^0.19.2", // 0.19.2
"bootstrap": "^4.4.1", // 4.5.0
"core-js": "^3.0.0", // 3.6.5
"eslint": "^6.7.2", // 6.8.0
"eslint-config-airbnb-base": "^14.0.0", // 14.1.0
"eslint-plugin-import": "^2.19.1", // 2.20.2
"eslint-plugin-vue": "^6.0.1", // 6.2.2
"regenerator-runtime": "^0.13.2", // 0.13.5
"sass": "^1.29.0", // 1.29.0
"sass-loader": "^8.0.0", // 8.0.2
"vue": "^2.6.11", // 2.6.11
"vue-loader": "^15.9.1", // 15.9.2
"vue-template-compiler": "^2.6.11", // 2.6.11
"webpack-notifier": "^1.6.0" // 1.8.0
}
}
6 Comments
Hi, how to deal with symfony caching? In my tests I always have to clear symfony cache see results in code changing
Hey @Willian
That's odd. I think you're running Symfony on the "prod" environment instead of "test". Double-check what environment is being used by your tests
Cheers!
Hey @MolloKhan!
.env is set to dev...
I actually have no idea what happened, maybe a bug in OSX or it's just got tired.... LOL I noticed that print screen also stopped working. So I just restarted my computer and the issue was gone.
Anyway, thank you for your time!
So it got fixed by restarting the computer? You must be on Windows! :D
Guys Is there any practice with multi instances of Vue object on the same page? For example I have one existing project and I want to move it on Vue. I plan it move partials. Is it make sense with VueInstanceNews, VueInstanceMainPage, VueInstanceCatalog. Or it's bad practice and need to have only 1 instance?
Hey WebAdequate!
It's perfectly fine to have multiple Vue instances in one page. In fact, some very big sites do this. The only limitation that you'll see is that the application data flow between instances is not going to be perfectly straight forward as with one Vue app. But you won't see an impact in performance.
"Houston: no signs of life"
Start the conversation!