Vue JS 3 Tutorial for Beginners #3 - Vue.js Basics (part 2)

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 212

  • @lebogangledwaba9754
    @lebogangledwaba9754 2 года назад +23

    Where have you been all my life(well, 3 years ago)? This is my second tutorial of your tutorials and you explain things even a child would understand. THANK YOU VERY MUCH!! Keep up the good work.

    • @NetNinja
      @NetNinja  2 года назад +3

      Thanks for the kind words Lebogang :) much appreciated!

    • @ДанилМ-р8ы
      @ДанилМ-р8ы 2 года назад +2

      Agreed. He explains everything really well

    • @CouchBit
      @CouchBit 4 месяца назад

      That's quite a well articulated sentence for a 3 year old haha

  • @mk9834
    @mk9834 3 года назад +41

    Even though I am a seasoned Vue2 developer, going through this whole series without skipping actually refreshed my memory and consolidated my skills as well! Thanks Shaun!

  • @maskman4821
    @maskman4821 3 года назад +37

    I really like this book list example, it applies the techniques we use in daily development in almost all projects, for example we can toggle favicon and change color, and the filter feature that render the bookswe want, etc. The demo example is really useful and practical, Shaun is trully a master of instructor on application development !!!

    • @NetNinja
      @NetNinja  3 года назад +4

      Thanks Stephen :)

  • @bencroacademy
    @bencroacademy 3 года назад +18

    Everytime there's any new stack I need to learn. Shaun is the go to guy..

  • @AidanHomewood
    @AidanHomewood Год назад +8

    So awesome how thorough this is - I love that you've considered all these edge cases (like when passing in multiple parameters to handleEvent) and go into such depth.

    • @NetNinja
      @NetNinja  Год назад +1

      Thanks, hope it was helpful!

  • @sekerek
    @sekerek 2 года назад +3

    So far among other tutorials I have dived in, this gave me the full understanding of every single thing he uses while coding. THANK YOU VERY MUCH SIR!

    • @NetNinja
      @NetNinja  2 года назад +1

      Glad it helped! :) thanks for your comment Angelo

  • @koossaayy
    @koossaayy 3 года назад +3

    I have looked forever to understand computed props, but your course, in only 6 mins, MAN YOU ARE AMAZING ♥

  • @sbastion8446
    @sbastion8446 3 года назад +4

    Thank you so much for providing these tutorials, Shaun! I've learnt Laravel, a little bit of React, & now Vue (in-progress) through these videos & they've been a big help.
    I also like that your tutorials not only give us viewers the code explanation, but also implement them in a project; it helps me to better understand how the code works.
    I'm having problem when learning through reading; they drain me mentally. But it feels easier when learning through videos like these.
    I'm sure your efforts will be repaid in some way. Cheers!

  • @furkangonulal1355
    @furkangonulal1355 3 года назад +14

    19:45 those who wanna use their own images , but getting size issues; just use css --- img { max-width:190px;} and there u go

  • @bjblk1
    @bjblk1 Год назад +3

    This is one of the best tutorials I have ever seen for any technology.

  • @brownieblondestudios3764
    @brownieblondestudios3764 3 года назад +6

    .box{
    padding: 100px 0;
    width: 400px;
    text-align:center;
    background: #ddd;
    margin: 20px;
    display: inline-block;
    }

  • @andreaslam
    @andreaslam 3 года назад +21

    I am taking Python and Shaun’s JS course on Udemy. Wish me luck! 💻 ⌨️📝

  • @deki90to
    @deki90to 3 года назад +8

    Omg I can not describe the feel I felt after I saw {{ }}, I'm comming from Django, and...omg I love Vue...and HATE react

    • @Berk45632
      @Berk45632 3 года назад +2

      Bruhhh, same. I learnt React and I can't understand shit. Vue seems so much better.

    • @mr.k8660
      @mr.k8660 4 месяца назад +1

      i thought django was a backend framework ???

    • @deki90to
      @deki90to 4 месяца назад

      @@mr.k8660 ??

    • @joshmosley
      @joshmosley 4 месяца назад

      ​@mr.k8660 Django has a template engine that uses the same {{}} syntax, Flask also has a templating engine (Jinja2) that uses this syntax.

    • @artem_egamediev
      @artem_egamediev 2 месяца назад

      ​@@mr.k8660 Django fullstack framework

  • @irocx8745
    @irocx8745 3 года назад +6

    You can have index of the element just like basic js for/forEach loops by using "(book, index) in books".

  • @felixbecquart
    @felixbecquart 3 года назад +4

    Shaun you became my best instructor. Thanks for all that you bring to the community

    • @NetNinja
      @NetNinja  3 года назад +1

      Thank you for the kind words :)

    • @maskman4821
      @maskman4821 3 года назад +2

      Master Ninja Shaun Pelling is one of the best two instructors ever, the other one is Maximilian Swatsmuler !!!

    • @felixbecquart
      @felixbecquart 3 года назад +1

      @@maskman4821 ahahah I think the same!

  • @C4ssstiel
    @C4ssstiel 3 года назад +3

    Great piece of tutorial mate. Just started learning Vue at College and came here for an additional source of info. Great Job. Cheers

  • @Chokluss
    @Chokluss 3 года назад +1

    i don't know if i have fall in love with vue or you are just a very good cupid

  • @abdosarmini
    @abdosarmini 2 года назад +3

    If you got an error like this: "Elements in iteration expect to have 'v-bind:key' directives", you need to add this attribute: :key="book.id". But you must create the id in the every book in the books array. In vue every child that is in a dynamic list of items, must have an id (this is also in React).

  • @marsdwarf
    @marsdwarf Год назад +1

    I loved the challenge. I wish there were 3 - 4 challenges at the end of each lesson!

  • @nikzadbehnam1027
    @nikzadbehnam1027 2 года назад

    You can't imagine how much I feel lucky after visiting your channel ... thank you for sharing your knowledge in this beautiful way.
    🥀

  • @leannemillar7826
    @leannemillar7826 7 месяцев назад

    One of the best tutors on RUclips. So glad I discovered this channel!

    • @NetNinja
      @NetNinja  7 месяцев назад

      Thanks Leanne, that means a lot :)

  • @ridl27
    @ridl27 3 года назад +1

    recently I decided to learn one more front-end framework and this series gives me no choice :D ty.

  • @kabakiAntony
    @kabakiAntony 3 года назад

    coming from backend and this being the first dive into frontend frameworks ,this is a great tutorial for introduction really great tutorial , thank you

  • @push2me936
    @push2me936 Год назад +1

    Thanks a lot Shaun! Let's give it a wow! This is teaching on Champions League level!

  • @justnumber5197
    @justnumber5197 3 года назад +1

    after react i will get back on vue 3!:) thank you net ninja for making many many tutorial none stop.

  • @photorealm
    @photorealm 3 года назад

    Net Ninja, You are very very good at teaching. Thank you for doing what you are doing.

  • @theindiedev.mstflotfy
    @theindiedev.mstflotfy Год назад

    Thank you very much! Incredibly helpful. You explain every little detail in a very logical way. This is the best Vue Tutorial I've come across so far.

    • @NetNinja
      @NetNinja  Год назад

      You're very welcome! thanks for the kind words :)

  • @Ipdxcreative
    @Ipdxcreative 2 года назад +1

    Dude your amazing! Thanks so much! Im new to Vue and very impressed with v-for like wow

  • @yourtrinty
    @yourtrinty 3 года назад +1

    You know, this person just teaches how the udemy teachers teaches. Greate !

    • @xrayian
      @xrayian 3 года назад

      He is a udemy teacher duh

  • @zakaria20062
    @zakaria20062 2 года назад +1

    This series is better then some udemy courses

  • @oybekrasulov2271
    @oybekrasulov2271 Месяц назад

    Great tutorial for beginners, even i recommend to experienced developers, thank you

    • @NetNinja
      @NetNinja  Месяц назад

      Glad you enjoyed it!

  • @Sdirimohamedsalah
    @Sdirimohamedsalah 9 месяцев назад

    Very smooth explanation!

  • @MrJohnny2109
    @MrJohnny2109 Год назад

    Amazing tutorial, I really appreciate it! Deffinitely the best Vue one I have ever seen for begginers! :)

  • @junimeme5626
    @junimeme5626 3 года назад +1

    When I saw his toggle method I facepalmed so hard I made a dent in my skull. It's so simple and intuitive compared to mine. Love it!

  • @k3tna
    @k3tna 3 года назад +15

    Magical, thanks. Shaun: "I don't want you to watch me type the CSS out, it's not a CSS course." Ends up throwing a couple of words on every property. What a boss!

  • @narasimhareddygolla2454
    @narasimhareddygolla2454 3 года назад +3

    You are really doing a good job

  • @gentan_roastery
    @gentan_roastery Год назад

    Really appreciate your teaching method. Clear explanation.

  • @lammmpo
    @lammmpo 2 месяца назад +1

    Hi! Recently I began working as a software engineer but I've never used Vue. Your videos are amazing and really helpful. I have a questiong about computed data. which is the diference between methods and computed? you can define filteredBooks in methods and use v-for="book in filteredBooks()" instead of computed. I would really appreciate your answer. Thank you :)

  • @shubhang2877
    @shubhang2877 3 года назад +2

    OMG Shaun youre on fire 🔥🔥🔥

  • @dieudonnemukunzi2471
    @dieudonnemukunzi2471 3 года назад +1

    Our Super Ninja. Thx Shaun 🤺

  • @Olejoss1906
    @Olejoss1906 Год назад

    Was going to try out the challenge, but when I checked the repo there are over 180 lessons, whereas the playlist contains 12 videos. I guess each video contains more lessons packed altogether. Would be good to enumerate them somehow to know which branch lesson should we pick in certain point in time.

  • @iqaznili
    @iqaznili Год назад

    Thank you Shaun! Just wanted to let you know that I read all the books in the example. :)

  • @MrChosenLP
    @MrChosenLP Год назад

    haha I like how you used Name of the Wind as an example.

  • @abigailwacukakamau1020
    @abigailwacukakamau1020 3 года назад +1

    The only guy I would not skip ads for

  • @JuanGarcia-pu2qc
    @JuanGarcia-pu2qc Год назад

    Thank you sir, I learned a lot...

  • @psgbjj
    @psgbjj Год назад

    Hello, have a comment. Thank you for this tutorial 👍 very helpful

  • @CSKAASIPRASANTHA
    @CSKAASIPRASANTHA Год назад +1

    Excellent sir👍

    • @NetNinja
      @NetNinja  Год назад

      Thanks for watching!

  • @MosesNjenga
    @MosesNjenga 2 года назад

    You are an amazing teacher!

  • @jessieaguiao
    @jessieaguiao 3 года назад

    Thank you very much for this The Net Ninja. Will buy your Vue 3 course from Udemy next week.

    • @NetNinja
      @NetNinja  3 года назад +1

      Thanks so much :). I hope you enjoy it!

    • @jessieaguiao
      @jessieaguiao 3 года назад

      @@NetNinja i am pretty sure i will.

  • @ivanvincent7534
    @ivanvincent7534 3 года назад

    Thank Vue Shaun.

  • @ricardohernandez7263
    @ricardohernandez7263 3 года назад

    The books references are great! hahahaha

  • @chizuru1999
    @chizuru1999 2 года назад

    I have a doubt. How come passing book argument and changing its valued also changed the original books array??

  • @TriinTamburiin
    @TriinTamburiin 3 года назад

    I'm liking vue very much so far, more than react tbh

  • @AlexTheGreatish
    @AlexTheGreatish 3 года назад +2

    2:13 the way you said "Over Yeaah" made me think of Cartman from South Park haha

  • @moacyrdacruzjr393
    @moacyrdacruzjr393 2 года назад

    In order to refer the last chapter on this course to check out about different array methods at 32:00, do you mean the video #11?

  • @ridl27
    @ridl27 3 года назад

    my solution of the challenge is completely as yours lol, even the names of method & param :D

  • @shivansh709
    @shivansh709 2 года назад

    We can also use mouseenter rather than mouse over

  • @jeffgoes4116
    @jeffgoes4116 2 года назад +1

    It got me very confused when you changed isFav property just by using the param received by the function "toggleFav()". Because in theory we just receive a value and reassign it but we are never changing the actual array. In React, for example, we would have to create a new array of objects and change that specific book for this change to take effect (using Map, filter or whatever). What does Vue do under the hood to understand that we are changing that specific property of the array?

    • @WungaBungaMC
      @WungaBungaMC Год назад

      The parameter 'book' that is passed into toggleFav(book) is passed in from the 'v-for:book in books' loop. That parameter 'book' is a reference to the current book being displayed in the for loop.
      In other words, the book.isFav property of each individual book is now accessible to be modified. Without passing that parameter in, there would be no way to modify each books isFav property individually.

  • @juliang9574
    @juliang9574 3 года назад +1

    You should do svelte + typescript next

    • @andrewclarke6916
      @andrewclarke6916 3 года назад

      He's already done Svelte.

    • @juliang9574
      @juliang9574 3 года назад

      @@andrewclarke6916 yes but not with typescript

  • @FRONTRUS
    @FRONTRUS 3 года назад

    That is awesome, thanks 👍💙

  • @issaissifou4959
    @issaissifou4959 2 года назад

    thank you so much!

  • @abbosbekuz
    @abbosbekuz 3 года назад

    thank you sir for very good tutorial

  • @mostafamohamed6118
    @mostafamohamed6118 3 года назад

    I really can't thank you enough!

  • @soumikahammed9170
    @soumikahammed9170 3 года назад +1

    my bind attribute is not working? can you give me solve of this problem?

  • @earnmoneystrategy8130
    @earnmoneystrategy8130 2 года назад

    I would be thankful if come to know how to add or remove class using class binding in vue.js 2

  • @adityaathavale3662
    @adityaathavale3662 3 года назад +1

    well done ninga

  • @kunalpandey7189
    @kunalpandey7189 3 года назад

    This is good, like really really good

  • @ruanoseba
    @ruanoseba 3 года назад

    Awesome, beats reading the new changes on the Vue page. I was listening to your entire playlist before I purchased the class for 14.99, but the class just spiked to 99.99. YIKES!

  • @georgesiamiotis464
    @georgesiamiotis464 2 года назад

    great tutorials! Maybe you have roots in India! thank you!

  • @CoconutwCoco
    @CoconutwCoco Год назад

    did the syntax change?

  • @prajyotbhujbal5563
    @prajyotbhujbal5563 3 года назад

    Best in the world❤

  • @JamesMorgan2
    @JamesMorgan2 3 года назад +1

    I'm looking at lesson-11 on github and finding when I run it that the mouseover events aren't working. For some reason it's only firing when you click in the first box. At first I thought it was a mistake in my code I was typing up as I was following on. Has something changed since the creation of this vid? Just to add testing on the latest version of Chrome, and Brave. Edit - appears it's when inspect is active. The position mouseover works fine when inspect is not active.

    • @JamesMorgan2
      @JamesMorgan2 3 года назад +1

      Figured it out. I had 'device toolbar' toggled.

    • @CrashOrFly
      @CrashOrFly 2 года назад

      @@JamesMorgan2 What 'device toolbar'???

  • @MrSMGun
    @MrSMGun 3 года назад

    can you use a method for the books array loop instead of data option in the component. something like v-for="book in this.books()"

  • @reinoutko
    @reinoutko 2 года назад

    For the challenge at the end, I had your exact answer but it wouldnt work for the entire time, spent a few minutes on it, watched you solve it and suddenly it did work 😐

  • @abdirisakmohamed5134
    @abdirisakmohamed5134 3 года назад

    I am taking your Vue 3 Course on udemy i wish me luck😍

    • @NetNinja
      @NetNinja  3 года назад +2

      Thanks :). And good luck!!

  • @vincej151
    @vincej151 3 года назад

    I have been using JS and JQuery for years. I am currently building an order processing application on Laravel. It already have hundreds of lines of JS /JQuery. Can you use Vue js for medium sized business applications? I have read that it is overkill unless you are building something really big. Wrong ?? Right ??

  • @oleFuzzy
    @oleFuzzy 2 года назад

    Why event is not showing in my console plis help

  • @kevinadrian2640
    @kevinadrian2640 2 года назад

    you are great

  • @chrisw5509
    @chrisw5509 2 года назад

    I was unable to get the mousemove to work. I could get the x an y to show 0 0 but when I used my trackpad (MacBookPro) the 0 0s disappeared. Any thoughts or help on this?

    • @wvbjj
      @wvbjj 2 года назад +2

      I had the same issue. My issue ended up being in the this.x = e.offsetX. The x and y at the end of the offset need to be capitalized. If they are lower case it will act just as you describe. Hope this helps.

    • @chrisw5509
      @chrisw5509 2 года назад

      @@wvbjj Thanks!! Now it’s working.

  • @sherdiliftikhar3703
    @sherdiliftikhar3703 2 года назад

    Hi there!
    I have a question. When you are using f-for( in outputting lists), where you have an array of objects. Conventionally we do not put a comma after the last element of the array (an array in your case). You did put a comma and still, it runs. how?

    • @salmankhan547
      @salmankhan547 11 месяцев назад

      Javascript allows trailing commas. It will simply just ignore it. If you do have two commas at the end it will increase the length of an array thou myArray=[1,2,3,,,] this will actually make the length of the array as 5.
      NOTE: JSON doesnt allow trailing commas.

  • @naruto.boruto_edt
    @naruto.boruto_edt 2 года назад

    please if you're watching this try doing that task, in a way u think it would work.

  • @dannywilczynski835
    @dannywilczynski835 Год назад

    If anyone is having trouble with offsetX and offsetY... make sure you use a capital X and Y lol oopsies

  • @binitrupakheti4246
    @binitrupakheti4246 3 года назад +1

    For some reason events are not firing on my vue app.

    • @dennyraymond3753
      @dennyraymond3753 Год назад +1

      need to check if the divs are inside the div id="app", mine was not working too before, then realized the divs for mouse events are outside, hope it helps

  • @johnyonardpauly5601
    @johnyonardpauly5601 3 года назад

    if doing ":src='product.img'" does not work, try this - :src='require(product.img)'

  • @azamitsolutionprovider9398
    @azamitsolutionprovider9398 Год назад

    in that challenge i actually almost got it but went wrong when i use
    @click="toggleFav(book.isFav)"
    so i passed the isFav value instead of passing the book using
    @click="toggleFav(book)"
    but the result is not the same..i can change the isFav in the first one but the value does not "save" and revert back to original and the class was not changed
    but the latter can change the original..
    is there any explanation to this? is it related to funtion parameter passed as ref etc?

    • @nikhilvijayan1729
      @nikhilvijayan1729 Год назад +2

      Yes. When an object is passed we are passing reference, so the actual data is changed. When book.isFav value is passed value is copied so the actual data is not changed

  • @mgmityu
    @mgmityu 2 года назад

    At 18:58 you left a stroke after last record in the arrray.

  • @RATANAGARWALITINFORMER
    @RATANAGARWALITINFORMER 3 года назад

    v nice

  • @rangabharath4253
    @rangabharath4253 3 года назад

    awesome

  • @johnreybautista3114
    @johnreybautista3114 3 года назад

    "liiikee so! like so!"

  • @mehmetilhan6083
    @mehmetilhan6083 3 года назад

    my solution is the same as yours my teacher

  • @あかあお-q9o
    @あかあお-q9o 3 года назад

    why don't run this code
    toggleFav(isFav) {
    isFav = !isFav;
    }

  • @dipakpatil360
    @dipakpatil360 3 года назад

    Hey Shaun, Please make a video on server side rendering in Vue.

  • @ulyanasaparbayeva5023
    @ulyanasaparbayeva5023 Год назад

    👍👍👍👍

  • @sezohessen7485
    @sezohessen7485 2 года назад

    In challenge I used index in looping , and in function update the value of this index -> ```this.books[index].isFav = !this.books[index].isFav```

  • @learnwithpikes
    @learnwithpikes 3 года назад

    master you are using default theme

  •  Год назад

    Where are u from?

    • @NetNinja
      @NetNinja  Год назад

      Manchester, England :)

  • @이창헌-v7j
    @이창헌-v7j 11 месяцев назад

    10:43

  • @juliorodriguez4946
    @juliorodriguez4946 Год назад

    yay, I'm the 3001 like :P

  • @Dennis12869
    @Dennis12869 Год назад +1

    Why are all these front-end frameworks so weird? All this messing around in HTML Files and JS Files. Why not generate everything from JS and make everything more consistent? I need and Frontend dev, I can't handle all this madness, i want back to my cosy C space :(

  • @qipzzzz
    @qipzzzz 2 года назад

    10