Це відео не доступне.
Перепрошуємо.
Vue JS 3 Tutorial for Beginners #5 - The Vue CLI & Bigger Projects (part 2)
Вставка
- Опубліковано 15 сер 2024
- In this Vue 3 tutorial we'll dive deeper into making larger Vue.js projects with the Vue CLI - including how to pass data (props) between components, how to emit custom events, how to work with slots & how to use Teleport - a brand new Vue 3 feature.
--- Timestamps ---
0:00 - Scoped & global CSS
6:15 - Props
17:29 - Emitting custom events
23:05 - Click event modifiers
26:51 - Slots
35:51 - Challenge: creating another modal
40:08 - Using Teleport
🐱💻 🐱💻 BUY THE FULL 20-hr COURSE ON UDEMY:
www.thenetninj...
🐱💻 🐱💻 Course Files:
+ github.com/iam...
🐱👤🐱👤 JOIN THE GANG -
/ @netninja
🐱💻 🐱💻 My Udemy Courses:
+ Modern JavaScript - www.thenetninj...
+ Vue JS & Firebase - www.thenetninj...
+ D3.js & Firebase - www.thenetninj...
🐱💻 🐱💻 Helpful Links:
+ HTML & CSS Course - • HTML & CSS Crash Cours...
+ Get VS Code - code.visualstu...
🐱💻 🐱💻 Social Links:
Facebook - / thenetninjauk
Twitter - / thenetninjauk
Instagram - / thenetninja
I don’t know who the hell you are @netNinja but you are litterally the best teacher on UA-cam I’ve ever met like the way you simply stuff is out of this world, you just don’t go on doing implémentation but you first break it down and get our minds prepared then you go on to show it and by then our mind has already started to grasp the idea by the earlier smaller example you made and this type of teaching deserves a honorary phd, I litterally understood Vue in just this tutorials you made thank you sir and remain blessed of this was war era I’d say “You have my sword 🗡️ “
Definitely the best Vue 3 JS tutorials ever uploaded on UA-cam. Thank you so much dude, so many questions of mine have been answered so far.
x2
+3
Agreed..He is a true Ninja
Update: He saved me and my group during a huge project we had to do in class where my teacher didn't do his job and we had little time to learn. Still thankful for this guide and when I need to learn anything new I check if Net Ninja got a tutorial for it.
PS we got full score on our project.
dude your tutorials must be officially adopted by the devs. It's impossible to not understand your explanation. Best tutorials creator ever
After browsing dozens of courses on Vue, I found yours and man, you blew my mind! Extremely easy to understand, cover all the basics for newbies plus covering the required previous knowledge too! Hat off mate, you are a champ!
I have no words. You're really the best. These are the best tutorials I've ever seen. Not just about Vue. I am talking about ANY UA-cam TUTORIALS! Shaun you're the champion. Aren't you a some sort of teacher or professor? You're made for teaching!
I agree..
Man you're doing great. I need to buy your course to support you
Thank you :)
Hi did you buy it?
Ok, I must say that I tried two other Vue Tutorials on YT, and this one is absolutely the best. Finally I can really understand how props and $emit work. Not only memorise the syntax, but see the logic there. You are an amazing educator! Thank you for your work! Greetings from Russia
Anytime I want to learn anything web i just head straight to your channel and I'm sorted. You doing well, Keep it up. Much love.
Another masterpiece of explanations. Congrats and Thank you!
I was trying to wrap my head around React HOC for so long.
Now days I'm learning Vue for a new role so I got to Shaun's tutorial.
He then suddenly started talking on an unfamiliar term for me, "slots"... I mean, it just came to me, such an incredible "Ahhhhhhhhhhh" moment - I finally found a convenient way to think of HOC, Thank you man!
ty ty for making this course - absolutely the easiest to understand that I've found 🙌🏽
Thank You Shaun! I have to say that, I learned Vue mostly from your channel by watching the previous version 2 videos.
Incredible course, I'm blown away. Paid for so many React JS courses that I really didn't like so I tried going for a different framework and yours is just the best I've seen
I felt the panic and absolute disappointment at 26:30 when the change didn't work as expected :-) we all went through that man. Btw, great course!! I am an experienced backend developer and within few hours I learned Vue.js. Thank you so much. Matt
That's awesome, thanks for watching Matt :)
I had a problem with slots. The anchor tag refused to style.
I found a reference that suggest using a "deep selector" that would change the CSS in the Modal.vue style to:
.modal .actions >>> a { [CSS Styles] }
THAT WORKED! But WHY did that work?
I'll have to dig into the "deep selector". Thanks for the help
Shaun has made me love JavaScript and its frameworks.. after finishing this series definitely I'm gonna buy the whole course, Thank you Shaun
Fantastic tutorials! Really clearly explained and useful examples. Thank you for all the time and energy you've put into this. I'm looking forward to the rest of the course.
You are the best teacher ever
Nice, this is incredible. Love you and love your channel from Brazilll
You are the best. I really love your tutorials. Thank you so much for free of charge.
I love how I leveling up day by day
For people who are finding problems with the styling of actions, just make sure you don't have 'scoped' in the style tag of your Modal.vue
This is a great tutorial. I got to 23:04 and was thinking about this exact thing. Nailed it!
This was exceptional. I understood slots and events finally. Thank you.
Making greatness Shaun. I have bought 2 of your udemy courses already. Please tell us when is the VueX 4 with Vue 3 tutorial coming
Thanks so much :). I'll probably do that very ealry next year!
The challenges part is awesome, most of the tutorials are in lack of this feature.
clearly explained every single detail. no bullshit. good instructor.
Thanks a lot Shaun! Let's give it a wow! This is teaching on Champions League level!
Great tutorial. Cant get enough of it.
Awesome! thanks :)
Best web dev tutorials on the internet as always!
Thanks Vincenzo :)
very good videos to learn Vue js from scratch.. Thnx for creating such a playlist
I owe you a lot. Best teacher I've ever known. I will buy your courses and please let me know if you come to Bangkok.
Wow, thank you for the support Thanakorn :)
@@NetNinja bought 2 courses just now.
what a explination by you sir, i am so thankful to you. ALLAH bless you.
wow this is amazing tutorial, I want to see vue and firebase together in youtube. Thank you so much for this tutorial.
Too good this has to be in the official doc!!
🙌😍One of the best explanation, keep it up. 😀
Thanks a lot 😊
This recently since i start to use vue to do smthg cool. but i get many logical trouble error in vue, and now this series is going to help me solved these~~ Thank you very much sir, it's easy to understand on your video good speech easy to get the point and organized topic. Liked it. Hope soon have many different skill, different framework introduce to the beginner.
Loving this course so far
Awesome, thanks Oscar!
hi, very good tutorial. thanks.
bruh ur fking amazing. i've watched diff utubers but ur knowledge is next level
JS + shaun = best combo
A great thanks, so well explained and good examples to apply quickly. Thank you !
slots are amazing
thanks
Why would anyone dislike these great tutorials? Great videos. I'm learning a lot.
What is the necessity to use props? I meant why we or when we should use it? 11:40
Hi Shaun. Great tutorial. One quick question: Considering that toggleModal() is a method, couldn't we pass as a parameter inside the brackets which of the two modals we want to toggle instead of having two different methods one for each modal? For instance:
open modal one
open modal two
I don't think this works, because this will pass the value of showModalOne and showModalTwo, as opposed to a reference to them.
I solved it by doing the following, but I'm thinking there must be a better way to do this...
toggleModal(modal) {
this.$data[modal] = !this.$data[modal];
}
and then calling it like
Show Modal 1
Show Modal 2
Oh boii... your tutorials are the best :)
Fantastic series! Massive thanks!
first view and thank u bruh for such amazing tuts!!
Thank you so much! I love your videos!
when using slots the css on Modal.vue won't apply to the tags h1, p and a... does anyone have the same bug?
yep same here, CSS do not apply! I'm going crazy trying to figure out why
It did. Check on the css at the bottom of Modal.vue example it says .modal.sale .actions a { color: white; } change that to blue or any color and see what happens
ty.
I watched a few vue tutorials, this is def the best one! can you also upload more videos how vue can work with backend framework like django or larval? or even tailwind lol
This is the BEST one !
amazing tutorial dude thanks a ton
dude, i love you
Esta serie de videos es espléndida.
about the assignment I've made it a bit different, and it works, but i wonder if there's a reason not to do it my way.
i changed showModal to be an array of booleans, and toggleShowModal method to receive an index as an argument, like this:
toggleShowModal(i){
this.showModal[i] = !this.showModal[i]
}
is there any reason not to do it this way?
Hi there! Why both modals couldn't remain with the inital styles (for exemple: background: crImson). Thanks
thanks so much for a great video!
Idea for next videos: React course like this!
For anyone else running into it the server doesn't seem to always refresh properly after changes so hitting Ctrl-F5 to do a hard refresh seems to help.
Good Job!
What if you want to pass on many data, therefore props, to a child component? We could add a property inside data () {} object which would be an object of many properties for the props we want to pass on? and we bind that object to the child component inside our parent one? so for example if we would have some user data we could do it like: data () { userData: { userId: "user1", password: "12345678" } and bind the userData property in the tag of our child component, like: ?? Or isn't this possible for some reason?
I tried to do this and I think it didn't work, but I could not understand very good how the props, and all these in Vue, work, so I might had done it incorrectly in general at that point.
Loving the Tutorials and so far the best explained tutorial I have found on vue.
On question though regarding slots. Why not use a component that has the template but a slot. like we can also have a Links component instead of a links Slot? Just trying to understand the difference between the two.
Can we send the toggleModal function as props and use it instead of custom events?
QUESTION: sometimes you use 'text' sometimes "text" I recognize in the I can use both as long as I am using one style in the current tag .
where is it important to use specific " or '
could someone give a useful hint?
I always have a good time with your tuts. however with this one Vue was so buggy. I would delete text etc from the app and it would still appear in the browser even tho id deleted it from the app 100%. No idea why it was so crazy with me. I followed instructions to optimise and ran the " npm build to optimise" and that worked - although I don't think im quite ready to understand the list folder yet, but I have seen you cover it on one of the firebase tutorials, so I hope everything comes together by the end 🤓
in teleport section, once i click the backdrop to close it , it just darkens and not closing dunno why , normally it works but once i add teleport tag it doesnt anymore lol why tho
This happened to me as well, and I'm not sure why. Did you manage to fix it? It'd be good to know what went wrong.
Thanks!
Thanks so much for your support Sora :) it means a lot!
I'm getting a bunch of red underlines in App.vue even though the program runs perfectly fine without errors. It says it's related to eslint-plugin-vue
make sure not to download it when you create the app
you are still great
Thank you very much!
Hi, I have a question please, couldn't we use @click="toggleModal" directly in the Modal tag instead of creating a custom event.
I know you might not have time to answer my question, but I thought it won't hurt me if I try
Edit: I've tested what I've asked and it works fine, I guess you used emit to show us it's use. Thanks a lot for these great videos btw, I'm really learning a lot, best tutor ever!
Thank you very mutch!
Resolve the refresh issue by closing the server and run again npm run server. I think the probleme come from Websocket
awesome sir..
lovely
Thank you very much for these great explanations. I got one question...
Is the preferred way: using that "emit-function" or can I just use a function from "props"?
Thanks sir ! but why would we want to place a modal or a popup at the bottom of the DOM tree, what is the purpose ?
Sir, why are you using v-if here to close the modal even the v-show renders fast?
People say Vue is easy to learn but for me it is far more complicating than React. Feel like learning new language than applying js. What do U think?
Can someone explain: in previous video (Basics part 2) when we send book item to the app.js during v-for we did not used props. We just put book without porps declaration. How does it works?
What icon extension do you use ?
thank you so much
Thank you Shaun, you did a great job. I do learn a lot from you tutorial and love it. I therefore joined your UA-cam member and going to buy your Udemy course. Would you consider to generate a course combining with Laravel and Vue(or React) (use Vue/React in Laravel project)?
This is good stuff! I was watching @ vuemastery but got stuck because they skipped some stuff. This is so well explained! I just wonder if working with vue cli is the best way to go.. And hopefullly i don't get stuck later. But till now it's the best! Can you please update the course files link? Can't find the files.. [edit] I just found them at lesson 19.. maybe good to add this ?
who tf could have disliked that
I was wondering the same thing
I'm not getting the exact output as your @ 15:16
this got me the result but can't understand why....
There's a bug where the modal automatically shows without clicking the button when you use v-show inside the teleport tag instead of v-if. How do we combat this?
the unfortunate thing about this visual code studio theme is it is hard to know on which he tab is he in, you end up writing or modifying the code in different tab than intended
my styles are not working after using the modals
Your Course is awesome. What else is there apart from this in your Course on Udemy. Can you share links for your course? I need to purchase. Thanks. Again U r great
couldnt get the css going on the slots part
Please teach us angular also
I know, I know you have no desire to answer this question but still, I want to ask you. Would you suggest/prefer to React or Vue?
Honestly depends on what I'm making, but I'm really enjoying Vue 3 using the compostion api at the minute. I preferred React to Vue 2 for most things though.
how to open the webpage of the vue app from vs vode?
I'm not sure why when I click on the button show modal two it doesn't work but its actually changing the other button function ...so when I click first the show modal button the first modal will show but if I click the show modal two then the show modal button modal two shows
oh okay so ... I defined it as Show by mistake T__T .........Thanks for the tutorials I really love this channel
29:47 "We dont see it" XD