Vue JS 3 Tutorial for Beginners #5 - The Vue CLI & Bigger Projects (part 2)

  Рет қаралды 206,976

Net Ninja

Net Ninja

Күн бұрын

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.thenetninja.co.uk/udemy/v...
🐱‍💻 🐱‍💻 Course Files:
+ github.com/iamshaunjp/Vue-3-F...
🐱‍👤🐱‍👤 JOIN THE GANG -
/ @netninja
🐱‍💻 🐱‍💻 My Udemy Courses:
+ Modern JavaScript - www.thenetninja.co.uk/udemy/m...
+ Vue JS & Firebase - www.thenetninja.co.uk/udemy/v...
+ D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
🐱‍💻 🐱‍💻 Helpful Links:
+ HTML & CSS Course - • HTML & CSS Crash Cours...
+ Get VS Code - code.visualstudio.com/
🐱‍💻 🐱‍💻 Social Links:
Facebook - / thenetninjauk
Twitter - / thenetninjauk
Instagram - / thenetninja

Пікірлер: 148
@masonasa7009
@masonasa7009 27 күн бұрын
I don’t know who the hell you are @netNinja but you are litterally the best teacher on KZbin 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 🗡️ “
@thewildhealer541
@thewildhealer541 3 жыл бұрын
Definitely the best Vue 3 JS tutorials ever uploaded on KZbin. Thank you so much dude, so many questions of mine have been answered so far.
@pablobricenocordova4747
@pablobricenocordova4747 3 жыл бұрын
x2
@Mohammed-rx6ok
@Mohammed-rx6ok 3 жыл бұрын
+3
@yasirtahirkheli74
@yasirtahirkheli74 2 жыл бұрын
Agreed..He is a true Ninja
@thewildhealer541
@thewildhealer541 2 жыл бұрын
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.
@jad.k.haddad
@jad.k.haddad 2 жыл бұрын
dude your tutorials must be officially adopted by the devs. It's impossible to not understand your explanation. Best tutorials creator ever
@fowl7413
@fowl7413 3 жыл бұрын
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!
@ZoyaLoenko
@ZoyaLoenko 2 жыл бұрын
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
@mullla1ya
@mullla1ya 3 жыл бұрын
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 KZbin TUTORIALS! Shaun you're the champion. Aren't you a some sort of teacher or professor? You're made for teaching!
@wovasteengova
@wovasteengova 3 жыл бұрын
I agree..
@argamangez
@argamangez 2 жыл бұрын
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
@straydogstrut115
@straydogstrut115 3 жыл бұрын
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.
@joshuankrumah-buadu9341
@joshuankrumah-buadu9341 2 жыл бұрын
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.
@gradientO
@gradientO 3 жыл бұрын
Man you're doing great. I need to buy your course to support you
@NetNinja
@NetNinja 3 жыл бұрын
Thank you :)
@ulvihmdli688
@ulvihmdli688 3 жыл бұрын
Hi did you buy it?
@ZakirHussain-mz2iz
@ZakirHussain-mz2iz 3 жыл бұрын
Thank You Shaun! I have to say that, I learned Vue mostly from your channel by watching the previous version 2 videos.
@LinuxForLife
@LinuxForLife 3 жыл бұрын
Another masterpiece of explanations. Congrats and Thank you!
@estelat8133
@estelat8133 3 жыл бұрын
ty ty for making this course - absolutely the easiest to understand that I've found 🙌🏽
@almogidisis274
@almogidisis274 2 жыл бұрын
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!
@ahmadalharbi9097
@ahmadalharbi9097 3 жыл бұрын
Shaun has made me love JavaScript and its frameworks.. after finishing this series definitely I'm gonna buy the whole course, Thank you Shaun
@cristiandumitriu1245
@cristiandumitriu1245 2 жыл бұрын
This was exceptional. I understood slots and events finally. Thank you.
@ramonpaolomaran2253
@ramonpaolomaran2253 3 жыл бұрын
Nice, this is incredible. Love you and love your channel from Brazilll
@bobich1244
@bobich1244 3 жыл бұрын
A great thanks, so well explained and good examples to apply quickly. Thank you !
@DanielTorres-gd2uf
@DanielTorres-gd2uf 2 жыл бұрын
This is a great tutorial. I got to 23:04 and was thinking about this exact thing. Nailed it!
@yesfishyy
@yesfishyy Жыл бұрын
I love how I leveling up day by day
@MartinMarchev
@MartinMarchev 3 жыл бұрын
Fantastic series! Massive thanks!
@myotoe2154
@myotoe2154 11 ай бұрын
You are the best. I really love your tutorials. Thank you so much for free of charge.
@darshandivte7363
@darshandivte7363 2 жыл бұрын
very good videos to learn Vue js from scratch.. Thnx for creating such a playlist
@Toni-nw1dk
@Toni-nw1dk 3 жыл бұрын
Thank you so much! I love your videos!
@houssemderouich4910
@houssemderouich4910 3 жыл бұрын
You are the best teacher ever
@mattiaorfano
@mattiaorfano 2 жыл бұрын
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
@NetNinja
@NetNinja 2 жыл бұрын
That's awesome, thanks for watching Matt :)
@veedawg630
@veedawg630 3 жыл бұрын
amazing tutorial dude thanks a ton
@uhyahaa8371
@uhyahaa8371 3 жыл бұрын
Oh boii... your tutorials are the best :)
@henrycho5288
@henrycho5288 2 жыл бұрын
wow this is amazing tutorial, I want to see vue and firebase together in youtube. Thank you so much for this tutorial.
@dandelion0331
@dandelion0331 2 жыл бұрын
clearly explained every single detail. no bullshit. good instructor.
@chenqu773
@chenqu773 3 жыл бұрын
This is the BEST one !
@christersin7934
@christersin7934 3 жыл бұрын
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.
@awaiskhalid4593
@awaiskhalid4593 3 жыл бұрын
bruh ur fking amazing. i've watched diff utubers but ur knowledge is next level
@toipham3227
@toipham3227 3 жыл бұрын
thanks so much for a great video!
@mohsenpiri4371
@mohsenpiri4371 2 жыл бұрын
hi, very good tutorial. thanks.
@push2me936
@push2me936 Жыл бұрын
Thanks a lot Shaun! Let's give it a wow! This is teaching on Champions League level!
@saadsheikh27
@saadsheikh27 2 жыл бұрын
JS + shaun = best combo
@elakObad
@elakObad Жыл бұрын
Loving this course so far
@NetNinja
@NetNinja Жыл бұрын
Awesome, thanks Oscar!
@Smowling
@Smowling 8 ай бұрын
Great tutorial. Cant get enough of it.
@NetNinja
@NetNinja 8 ай бұрын
Awesome! thanks :)
@alexanshuman2462
@alexanshuman2462 10 ай бұрын
🙌😍One of the best explanation, keep it up. 😀
@NetNinja
@NetNinja 10 ай бұрын
Thanks a lot 😊
@lintingwei
@lintingwei Жыл бұрын
Too good this has to be in the official doc!!
@Gandobilis
@Gandobilis 11 ай бұрын
The challenges part is awesome, most of the tutorials are in lack of this feature.
@riazbacchus3962
@riazbacchus3962 2 жыл бұрын
dude, i love you
@gurbanovsh
@gurbanovsh Жыл бұрын
Good Job!
@vincenzocristiano135
@vincenzocristiano135 2 жыл бұрын
Best web dev tutorials on the internet as always!
@NetNinja
@NetNinja 2 жыл бұрын
Thanks Vincenzo :)
@JJ-ot3ps
@JJ-ot3ps 2 жыл бұрын
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
@KyleBondo
@KyleBondo 2 жыл бұрын
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?
@jeremybrews2521
@jeremybrews2521 9 ай бұрын
I'll have to dig into the "deep selector". Thanks for the help
@ChrisChanSajelan
@ChrisChanSajelan 3 жыл бұрын
Thank you very much!
@mjuyg4rh8a
@mjuyg4rh8a 2 жыл бұрын
Esta serie de videos es espléndida.
@javhaasuhochir8126
@javhaasuhochir8126 Жыл бұрын
slots are amazing
@harrysantoso6430
@harrysantoso6430 3 жыл бұрын
awesome sir..
@dashabulatova7628
@dashabulatova7628 3 жыл бұрын
Thank you very mutch!
@starkgaming4758
@starkgaming4758 3 жыл бұрын
first view and thank u bruh for such amazing tuts!!
@exploreworldtogather
@exploreworldtogather 2 жыл бұрын
what a explination by you sir, i am so thankful to you. ALLAH bless you.
@learnsimple4592
@learnsimple4592 3 жыл бұрын
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
@NetNinja
@NetNinja 3 жыл бұрын
Thanks so much :). I'll probably do that very ealry next year!
@mohammadalhallaq3093
@mohammadalhallaq3093 3 жыл бұрын
thank you so much
@haytammostaine5033
@haytammostaine5033 Ай бұрын
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
@fadhilinjagi1090
@fadhilinjagi1090 3 жыл бұрын
Why would anyone dislike these great tutorials? Great videos. I'm learning a lot.
@geniichen
@geniichen 3 жыл бұрын
Thank you Shaun, you did a great job. I do learn a lot from you tutorial and love it. I therefore joined your KZbin 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)?
@pisanghangus2
@pisanghangus2 2 жыл бұрын
lovely
@WanderGirl
@WanderGirl 2 жыл бұрын
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.
@thanakornmeesupprasert5179
@thanakornmeesupprasert5179 Жыл бұрын
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.
@NetNinja
@NetNinja Жыл бұрын
Wow, thank you for the support Thanakorn :)
@thanakornmeesupprasert5179
@thanakornmeesupprasert5179 Жыл бұрын
@@NetNinja bought 2 courses just now.
@matthiaskolley1048
@matthiaskolley1048 3 жыл бұрын
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"?
@J0hn1ee
@J0hn1ee 3 жыл бұрын
thanks
@Erol_makes_stuff
@Erol_makes_stuff 8 ай бұрын
Thanks!
@NetNinja
@NetNinja 8 ай бұрын
Thanks for your support Erol, it means a lot :)
@ridl27
@ridl27 3 жыл бұрын
ty.
@AA-jb5cs
@AA-jb5cs 3 жыл бұрын
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!
@kevinadrian2640
@kevinadrian2640 2 жыл бұрын
you are still great
@EdelwaysMusic
@EdelwaysMusic Жыл бұрын
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?
@Foused87
@Foused87 3 жыл бұрын
Idea for next videos: React course like this!
@danielwatson6529
@danielwatson6529 2 жыл бұрын
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 🤓
@luvsachdeva1520
@luvsachdeva1520 3 жыл бұрын
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
@themoroccanpianist8953
@themoroccanpianist8953 2 жыл бұрын
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 ?
@davidleda2324
@davidleda2324 3 жыл бұрын
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
@samlaf92
@samlaf92 3 жыл бұрын
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
@nielfollero8061
@nielfollero8061 3 жыл бұрын
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?
@samhitavetcha322
@samhitavetcha322 6 ай бұрын
Can we send the toggleModal function as props and use it instead of custom events?
@boxtrainer
@boxtrainer Жыл бұрын
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?
@NotesandPens-ro9wx
@NotesandPens-ro9wx Жыл бұрын
What is the necessity to use props? I meant why we or when we should use it? 11:40
@chpasta
@chpasta 11 ай бұрын
Hi there! Why both modals couldn't remain with the inital styles (for exemple: background: crImson). Thanks
@huzaifaadil2128
@huzaifaadil2128 11 ай бұрын
Sir, why are you using v-if here to close the modal even the v-show renders fast?
@anaselhakeam6077
@anaselhakeam6077 2 жыл бұрын
how to open the webpage of the vue app from vs vode?
@darkmojojojo
@darkmojojojo 2 жыл бұрын
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.
@ayocs2
@ayocs2 3 жыл бұрын
I'm not getting the exact output as your @ 15:16 this got me the result but can't understand why....
@nicolettakrzaczek3726
@nicolettakrzaczek3726 Күн бұрын
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?
@saphalpoudyal262
@saphalpoudyal262 3 жыл бұрын
ayyyyyyy
@user-tu4ij7pv2w
@user-tu4ij7pv2w 6 ай бұрын
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 ?
@jimos9878
@jimos9878 8 ай бұрын
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.
@qamaria7454
@qamaria7454 Жыл бұрын
Resolve the refresh issue by closing the server and run again npm run server. I think the probleme come from Websocket
@bugrahandurukan4665
@bugrahandurukan4665 2 жыл бұрын
couldnt get the css going on the slots part
@ambig1
@ambig1 Жыл бұрын
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
@javierlizarazu1297
@javierlizarazu1297 3 жыл бұрын
when using slots the css on Modal.vue won't apply to the tags h1, p and a... does anyone have the same bug?
@Doumstyle
@Doumstyle 3 жыл бұрын
yep same here, CSS do not apply! I'm going crazy trying to figure out why
@dennisbarnaja4173
@dennisbarnaja4173 2 жыл бұрын
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
@furkangonulal1355
@furkangonulal1355 3 жыл бұрын
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
@jamesdrysdale3711
@jamesdrysdale3711 3 жыл бұрын
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.
@eddykei6330
@eddykei6330 3 жыл бұрын
who tf could have disliked that
@dejangegic
@dejangegic 3 жыл бұрын
I was wondering the same thing
@cubedev4838
@cubedev4838 2 жыл бұрын
Please teach us angular also
@SaleemVFX
@SaleemVFX Жыл бұрын
my styles are not working after using the modals
@nielfollero8061
@nielfollero8061 3 жыл бұрын
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
@00el04
@00el04 3 жыл бұрын
make sure not to download it when you create the app
@ulvihmdli688
@ulvihmdli688 3 жыл бұрын
Has anyone taken this course from udemy?
@maialso6096
@maialso6096 3 жыл бұрын
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
@maialso6096
@maialso6096 3 жыл бұрын
oh okay so ... I defined it as Show by mistake T__T .........Thanks for the tutorials I really love this channel
@oguzakankan518
@oguzakankan518 3 жыл бұрын
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?
@NetNinja
@NetNinja 3 жыл бұрын
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.
@johnmoore4248
@johnmoore4248 3 жыл бұрын
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?
Vue JS 3 Tutorial for Beginners #6 - Build a Reaction Timer Game
41:59
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 928 М.
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 4,9 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 195 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 24 МЛН
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 80 М.
Vue.js: The Documentary
34:45
Honeypot
Рет қаралды 1,5 МЛН
Vue JS 3 Tutorial for Beginners #8 - The Vue Router
47:48
Net Ninja
Рет қаралды 260 М.
Vue JS 3 Tutorial for Beginners #7 - Forms & Inputs
45:41
Net Ninja
Рет қаралды 182 М.
Learn Vuex in 30 MINUTES! (Vue JS 3)
32:12
Make Apps with Danny
Рет қаралды 123 М.
Vue JS 3 Tutorial for Beginners #9 - Fetching Data
20:10
Net Ninja
Рет қаралды 182 М.
Beginner Vanilla Javascript Project Tutorial
1:15:19
developedbyed
Рет қаралды 896 М.