Vue.js With TypeScript A Beginners Guide

  Рет қаралды 87,424

Program With Erik

Program With Erik

Күн бұрын

Пікірлер: 81
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
🚨 IMPORTANT: I have the ultimate Vue course! If you're interested in it click here and get a free Vue cheat sheet! www.vuecourse.tech/
@Kempriol
@Kempriol 4 жыл бұрын
Vue LP based on react@16 ahaha
@JulienReszka
@JulienReszka 5 жыл бұрын
Please create the video tutorial to add typescript to an existing vue.js project
@saraivasquezmarinez949
@saraivasquezmarinez949 3 жыл бұрын
You just type "vue add typescript" inside of the vue project; there are different configs but are still VERY similar to the ones in this video
@yackawaytube
@yackawaytube 5 жыл бұрын
Awesome. Just started my journey of Vue today. Thanks.
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Good luck!
@IanGem1121
@IanGem1121 3 жыл бұрын
At 9:31 what is the difference between msg and erik? What does @Prop do?
@gideonking3667
@gideonking3667 5 жыл бұрын
The typing should be "string" the primitive type rather than "String" which is an object (i.e. an object with String.prototype in its prototype chain). In virtually all cases it will not cause a problem with compiling, but "string' is technically correct.
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Good catch!
@kalyszhek5296
@kalyszhek5296 3 жыл бұрын
Hello! As a professional, purely your opinion, what do you think is right, a class component or a functional component? and I'm use: import { defineComponent } from 'vue'; import HelloI18nVue from './HelloI18n.vue'; export default defineComponent({ components: { HelloI18nVue }, setup() { } }) do you think this is right? P.s. I'm a beginner Vue3+TS DeV.
@collinslagat3458
@collinslagat3458 5 жыл бұрын
Vetur intellisense plugin doesn't play well with the template portion in Class Based Components. It doesn't autocomplete or give suggestions on properties defined in the component. But other than that, the class based component is pretty good.
@Xenon77x
@Xenon77x 4 жыл бұрын
I think this make it similar to angular which is goooooood, OOP
@johnm8358
@johnm8358 5 жыл бұрын
Happy new year erik
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
Thanks!
@alanhunt3772
@alanhunt3772 4 жыл бұрын
Coming from React I can see the benefits of Vue, but it seems Vue as a whole involves a lot less actual JS than React, thus almost downplaying the need for TS. Vue gets the award for simplicity with binding but I personally think React is a bit more readable and I still enjoy declaring variables rather then appending to a data() object. That's just my two cents from watching this video.
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
That's a good point. But with Vue 3, it's a good combination
@rakeshmallem4418
@rakeshmallem4418 4 жыл бұрын
Hi Eric, could you tell me to set up an existing vuejs project and run it. Thanks in advance!
@heyyy4987
@heyyy4987 5 жыл бұрын
Happy new year erik. .I hope more complete series using vue and typescript and vuex. Some nice too is vue-nativescrit series. thanks
@Herclia
@Herclia 4 жыл бұрын
Hello can you say what is you theme in editor ? Look very nice !!!
@hasiburrahman9392
@hasiburrahman9392 3 жыл бұрын
Hey Erik, I love your video
@huckfaters
@huckfaters 4 жыл бұрын
Hey Erik! Are you using vscode's vim plugin?
@scr4932
@scr4932 3 жыл бұрын
Apparently they've addressed the issue with the non-class method being unable to determine the type of "this". I've just tried it myself and it worked - setting this.test to a number results in a compilation error both in the IDE and when building. I'd still go with the class-based format, though.
@PureAlbania
@PureAlbania 5 жыл бұрын
Wasn't the Vue Class Component dropped in favor of Composition API?
@kalebercanbrack8857
@kalebercanbrack8857 5 жыл бұрын
The current RFC for the Composition API doesn't mention dropping any support for the Class API, but it seems that the two butt heads with each other.
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
Yes, but you can still use the Vue class component API, just as a seperate library. They were thinking of making it the default, but the composition API won out.
@DelPieroJoga10
@DelPieroJoga10 4 жыл бұрын
​@@ProgramWithErik can I use composition API on vue 2?
@goodbrainwork
@goodbrainwork 3 жыл бұрын
anyone know what the name of this color theme is?
@alexcubed4270
@alexcubed4270 4 жыл бұрын
Thank you this was very helpful :D
@ck.hannel
@ck.hannel 4 жыл бұрын
If it can't catch the type when using "this", I think it's done.
@Spinnerpor
@Spinnerpor 4 жыл бұрын
fact
@viraj_singh
@viraj_singh 3 жыл бұрын
@@Spinnerpor also ts support inside template is very less.
@другМаша
@другМаша 3 жыл бұрын
thank you so much
@MasharipovSaidbek
@MasharipovSaidbek 2 жыл бұрын
Super, Amazing!
@Yakimych51
@Yakimych51 5 жыл бұрын
Great video! I've noticed you still get a runtime error when you make a typo at kzbin.info/www/bejne/eYKkgp5-qtqfirc (preventing which is one of the big selling points of TypeScript). Is there any way to avoid this? Also, do you know if TypeScript support is going to improve in Vue 3 (that is actually written in TypeScript itself)?
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
I believe with Vue 3, and the composition API it will work a bit bettter.
@miklosnemeth8566
@miklosnemeth8566 4 жыл бұрын
Excellent point Kyrylo, a modern programming environment should detect a type at 11:52. Since Vue doesn't support TypeScrip in the template part, I wouldn't call Vue ready for TypeScript at all.
@aleksandrippatev1268
@aleksandrippatev1268 4 жыл бұрын
Thanks!
@foniko123
@foniko123 5 жыл бұрын
Can you share the css you used for Synthwave 84 ?? :)
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
It's default
@mel-182
@mel-182 5 жыл бұрын
does vuetify support vue ts?
@mel-182
@mel-182 5 жыл бұрын
I just saw its supported. :D can you make a video implementing Vue TS to Vuetify or Quasar. :D
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Good idea! I'll add it to the list
@mel-182
@mel-182 4 жыл бұрын
@@ProgramWithErik Great! Thanks! :D
@kevyyar
@kevyyar 5 жыл бұрын
What keyboard do you use? It sounds awesome
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Ha! It's very clicky. it's a corsair
@skewty
@skewty 4 жыл бұрын
clicky usually means cherry blue switches. You should look for keyboards with these switches if you like clicky keyboards. :)
@kevyyar
@kevyyar 4 жыл бұрын
@@ProgramWithErik very vague answer but ok. i apologize for asking lol
@Pretence404
@Pretence404 3 жыл бұрын
not getting "vue-property-decorator" in package.json,,, please help
@etymology_
@etymology_ 5 жыл бұрын
Can you do a video on how to use a js library/ npm package in a vue component
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
What sort of library did you have in mind? There really isn't much to it, you just import it in the component and use it.
@etymology_
@etymology_ 5 жыл бұрын
@@ProgramWithErik I have been trying to use hover-effect, cant get it to work, it uses gsap & three.js, when you npm install it, they are included with the package, but hover-effect & pixie.js are more complex libraries than for example using moment....
@etymology_
@etymology_ 5 жыл бұрын
@@ProgramWithErik Can I pay you like 30 bucks to show me how to do this in vue...paypal or cashapp.?.I cant find anything on stack overflow.
@RianY2K
@RianY2K 5 жыл бұрын
Thanks for tutorial :) . And what vs code theme that you're using ?
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
Thanks Synthwave 84!
@adamtak3128
@adamtak3128 5 жыл бұрын
@@ProgramWithErik Looks way cooler on youtube than it does in vscode =/ It's not as dark as I had hoped. I'm using one called Moxer that's pretty dope.
@tajeddinealaoui445
@tajeddinealaoui445 5 жыл бұрын
Hi, can you please make a video about nuxt + nodemailer, i really need to make a contact form with nuxt.
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
I'll add it to the list!
@existentialchild698
@existentialchild698 5 жыл бұрын
what's the name of the theme you're using in Atom?
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
VSCode Synthwave 84
@existentialchild698
@existentialchild698 4 жыл бұрын
@@ProgramWithErik thanks!
@vinceramces
@vinceramces 5 жыл бұрын
Intellisense is good all in all. But vue with typescript configuration is one of a hell setup. Even using on Nuxt or Vuex configuration just to make the intellisense work
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
On Nuxt it's harder for sure!
@bastilavarias7885
@bastilavarias7885 5 жыл бұрын
Yeah sure.
@petecapecod
@petecapecod 5 жыл бұрын
Thanks Erik great video!! Even React was all classed based up until version 16.8, so it's pretty familiar coming from there too 😎👏
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
You are welcome!
@lostlost60
@lostlost60 5 жыл бұрын
Thanks for tutorial :-)
@PhoenixRisingLoL
@PhoenixRisingLoL 4 жыл бұрын
Commenting for the algorithm :D
@Shinwe
@Shinwe 4 жыл бұрын
OMG for one second though that I was watching linus's tech channel.
@MattDuarte11
@MattDuarte11 5 жыл бұрын
I use it with the class syntax. It’s better. I think the whole data and methods object is unnecessary code
@ProgramWithErik
@ProgramWithErik 5 жыл бұрын
Nice!
@sahandsepidar4089
@sahandsepidar4089 2 жыл бұрын
awesome
@aseemlalfakawma5084
@aseemlalfakawma5084 4 жыл бұрын
Great video, but my OCD is killing me with the way you are declaring and assigning those class properties. lol
@GlitchClaw
@GlitchClaw 5 жыл бұрын
Just use angular
@GlitchClaw
@GlitchClaw 5 жыл бұрын
With webstorm
@mclotos
@mclotos 4 жыл бұрын
Hell from TS (Freudian slip =) )
@anzefajfar3072
@anzefajfar3072 3 жыл бұрын
Steve Buscemi
@classicguy7813
@classicguy7813 4 жыл бұрын
Please next time start from sky not from decorators which is really really easy
@valeriikuzivanov6832
@valeriikuzivanov6832 4 жыл бұрын
No god please no :)
Vue.js Tips: Use Slots The Right Way // VUE.JS SLOTS TUTORIAL WITH VUE 3
11:59
Vue 3 Composition API Introduction [FULL TUTORIAL]
23:46
Academind
Рет қаралды 177 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 21 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 29 МЛН
A Deep Dive Into Async Components In Vue! (Should You Use This?)
13:04
Program With Erik
Рет қаралды 21 М.
Learn TypeScript With Vue.js 3 In 20 Minutes
22:56
Program With Erik
Рет қаралды 75 М.
Vue.js 3 Deep Dive with Evan You
13:46
Vue Mastery
Рет қаралды 60 М.
TypeScript Origins: The Documentary
1:21:36
OfferZen Origins
Рет қаралды 297 М.
Learn Vuex In 10 Minutes (Vue.js State Management)
13:28
Program With Erik
Рет қаралды 148 М.
The Programming Language Guide
24:25
Traversy Media
Рет қаралды 503 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 68 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН