Learn TypeScript With Vue.js 3 In 20 Minutes

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

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

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

    Check out Tabnine, the FREE AI-powered code completion tool I use to help me code faster: www.tabnine.com/get?.com&Erik

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

      Can I use Composition API for state management with Typescript, Please reply Mr.Erik Hanchett

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

      I can't believe you are promoting these AI coding tools. The companies behind this are scraping your code. If you use that on a project where you have a signed an NDA, you are in breach.

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

    I am learning Vue and typescript seen many videos but this video teach me many things. I am really thankful to you for the way you explained and showed things like auto-complete and other extensions. it's really awesome, amazing, great video 👏👏👏👏👏

  • @SyedHaroon786
    @SyedHaroon786 3 года назад +7

    Was waiting for this for a very long time now, Thanks Erik :)

  • @geordiehowell9087
    @geordiehowell9087 10 месяцев назад

    thanks so much for your top level online tutorials Erik. You have really great delivery / so clear. Thanks

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

    Didnt know about how you create an interface easily before. Glad this video exist

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

    Can you please explain why you‘ve used toRefs on an already reactive object? Thanks!

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

    I wanna thanks for the lecture was really explanatory in how to use typescript & vue3. Using composition API does make sense to user vuex?
    Since I'm going through a project which is gonna I kind of store (thinking in VUE 2) what do u suggest.
    Thanks
    Michele

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

    Thanks...
    Coming from angular and having some nom ts Vue background this certainly filled in the blanks.

  • @antonioquintero-felizzola5334
    @antonioquintero-felizzola5334 3 года назад +1

    Great video as usual! What's the VS Code theme you're using Erik?

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

    I am learning vue. I have a sign-in page and a dashboard. I converted my HTML admin app to vue app. how do I redirect from login to dashboard with page reload? I need to do this because my js is not working if I do not reload the page.

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

    Great video, Thank you so much

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

    You are wearing contact lenses, right? Great camera quality and also quality content ;-).

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

    Let me just say it. I loooooove your videos

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

    Erik, following your great videos I started a project using vue 3 with typescript and found out that debugging does not work and jest testing does not work. I spent hours googling. It would be great if there was a video covering the whole dev process including debugging in vscode and testing with jest.

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

      +1 yes right. it could be very useful

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

    I'm curious at 21:30 you create a reactive object that has data property of type ItemTypes. But couldn't you just directly do something like "let data = reactive({})" ? One thing I would also be interested in seing the typescript benefit is Vuex!
    Really useful video, thank you!

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

    Can’t use vetur in intellij idea. Solution? Typescript error message for component not working.

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

    Unrelated to the video but related to the sponsor:
    I feel like tabnine performs waayyy better in sublime text 3 than in vscode I just recently switched editors (still using sublime for heavy projects tho) and tabnine in sublime is able to autocomplete up to 3-4 entire lines with the current context while in vscode struggles to even suggest a good autocompletion for the current line

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

    What is your theme and fonts used?

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

    Really nice, perfect level of context and practical usage (I'm still mostly vue2 because of some key dependencies, eager to go to vue3 and was thinking about TS). Thanks!

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

    sorry by stupid question) whats theme in your vscode

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

    It's exactly what I've been looking for. Thanks Erik!

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

    Type assertion in the object-based approach is dangerous. The `data` is actually an empty object in the runtime until the query promise is resolved, and if you somewhere try to do access something like `data.results[0]` you will get a TypeError because `data.results` is still undefined. I'd suggest making `data` nullable and do proper conditional handling.
    However, I have to say they really improved TS support in v3, looks promising. I hope they bring it to the level of a finished product.

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

      Using the optional changing operator ( ?.[0] ) should prevent any error but is there any better approach?

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

    big thx! Great matherial, hello from Russia!

  • @winns.x
    @winns.x 3 года назад

    Nice tutorial, thanks.

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

    What theme vscode u have ?

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

    Erik, I want to encourage to eschew `let`: you almost always should use `const` instead.

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

    Yet another cool video for Vue/TS, I cannot wait until you start modular vuex with TS :) BTW, the theme for syntax highlighting is a bit confusing, because it uses red color for stuff that is correct :)

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

    Thank you , for the video

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

    what is your editor theme, man

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

    Excellent tutorial!

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

    The syntax seems pretty weird. To make props typesafe writing "as PropType" is so counterintuitive. In React you can just use the normal ":"-operator and give it a type. Vue3's typescript support seems hacky.

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

    Great video, thanks

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

    Yeah !! what i've voted for !! Good to see you again Erik !!

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

    Duh beard is gone. Thanks for the content Erik. I'm hunting my 2nd dev job and the top pick i'm interviewing with uses Vue. So, I may be joining the Force.

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

    Good that you used Options API in the example project. Composition API is not the best for teaching basic stuff.

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

    To the point !!

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

    What about Composition API?

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

    You had me at 20 minutes lol

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

    ionic with vue, erick !

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

    OMG, Thanks

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

    Why did you use "let" with reactive and ref? There is no reason to do this.

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

    Wow im upset I was spooked about learning typescript for so long

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

    Why you are not using class components? This looks baad :/.

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

    Learn TypeScript

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

    "click like and subscribe" CTA 25 seconds in is not going to get a lot of conversions. I have no idea who you are or if this video is valuable to me

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

    I like vuetify

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

    Typescript is an overkill with frameworks like vue or nuxt. JavaScript is horrible but typescript is unbearable. The way is to keep things simple. If you need a typed language then go for web assembly.

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

    seriously this is making me love angular even more...lol