Chapters
44 Chapters
|
4:19:56
|
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!
26.
"Add to Cart Controls" Component
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!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This course is also built to work with Vue 3!
What JavaScript libraries does this tutorial use?
// package.json
{
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", // 5.15.1
"@symfony/webpack-encore": "^0.30.0", // 0.30.2
"axios": "^0.19.2", // 0.19.2
"bootstrap": "^4.4.1", // 4.5.3
"core-js": "^3.0.0", // 3.6.5
"eslint": "^6.7.2", // 6.8.0
"eslint-config-airbnb-base": "^14.0.0", // 14.2.0
"eslint-plugin-import": "^2.19.1", // 2.22.1
"eslint-plugin-vue": "^6.0.1", // 6.2.2
"regenerator-runtime": "^0.13.2", // 0.13.7
"sass": "^1.29.0", // 1.29.0
"sass-loader": "^8.0.0", // 8.0.2
"vue": "^2.6.11", // 2.6.12
"vue-loader": "^15.9.1", // 15.9.4
"vue-template-compiler": "^2.6.11", // 2.6.12
"webpack-notifier": "^1.6.0" // 1.8.0
}
}
4 Comments
The component code in the question to this video seems wrong and
orderPizzashould actually look like:Hey Acran,
Yeah, you're right! I fixed it, thanks :)
Cheers!
Hi,
I've had an issue during moving 'product-show.vue' component to 'product-show' directory and renaming it to 'index.vue'. For me it was not enough just to restart Encore. I've also had to change import in '/pages/products.vue' component (from "import ProductShow from '@/components/product-show/product-show'" to "import ProductShow from '@/components/product-show'") and change import for light-component.scss in 'index.vue' (I don't know why but it have missed full path after move operation)
Cheers,
Jakub
Hey @Jakub!
Sorry for my very slow reply! Hmm.
When I look at our
/pages/products.vue- e.g. here https://symfonycasts.com/screencast/vue2/dynamic-component#codeblock-6f1d66b01c - it looks like this:Unless I changed it later and I can't remember, I don't think it ever looked like
import ProductShow from '@/components/product-show/product-show. So this was, maybe, just something that you did slightly differently, which is why you needed to make that extra change :).Cheers!
"Houston: no signs of life"
Start the conversation!