Reusable Form Input Components With Vue 3

  Рет қаралды 21,157

John Komarnicki

John Komarnicki

Күн бұрын

Пікірлер: 30
@hafizjavaid
@hafizjavaid 2 жыл бұрын
Really helpful as always. Please create the fully functional project using vue 3 set-up api, vuex / pinia and typescript
@martinpenev6750
@martinpenev6750 Жыл бұрын
This video just cleared a confusion I had for quite some time! Thx for the superb explanation 👏🏻
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Glad it was helpful!
@_the_one_1
@_the_one_1 2 жыл бұрын
Pro tip: if you use `type: [Boolean, String]` for the label prop you don't need to specify `default: false` because that would be set by default
@Tarabass
@Tarabass Жыл бұрын
I think the whole boolean isn't necessary, just make the string not required. An empty string is falsy..
@owhut5439
@owhut5439 2 жыл бұрын
Great content, hope to see a nuxt 3 tutorial soon
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Yes, I’ll be creating some content with nuxt soon!
@Al-Misanthropic-Bundy
@Al-Misanthropic-Bundy 2 жыл бұрын
These damn bots commenting on every video now. Thanks a lot for the video! I love Vue3 and you always slow us nice and easy stuff about it!
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Yeah, lol. I’ve seen these a lot recently 😂 thanks glad you’re enjoying and finding them valuable!
@CsabaKissColorado
@CsabaKissColorado Жыл бұрын
You could make it even simpler by using the useVModel function from the VueUse library
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Yeah, I wanted to show how to do this without that, to understand how it worked under the hood. But vueUse is definitely a viable option!
@pixiedev
@pixiedev Жыл бұрын
Thanks this is what I need.
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Glad to hear!
@Ikkin267
@Ikkin267 11 ай бұрын
Hello is this also applicable for ionic vue project? Thank you
@tanzimibthesam5861
@tanzimibthesam5861 4 ай бұрын
What to do if i want to make whole form resuable?
@RianY2K
@RianY2K 2 жыл бұрын
Thank you for video, this is useful
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I’m glad to hear!
@NeGovoriNet
@NeGovoriNet 2 жыл бұрын
Thank you. Will you tell us about how to validate these components?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I’m going to create a follow up video for validation on forms!
@DanielTames
@DanielTames 2 жыл бұрын
Thanks for the video John! I have a question, the $attrs key binded can be used for any other html tag? Is there another using for this key?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
$attrs holds all the attribute values pass from the parent for you to access within the template itself. You can use it on any element you want to inherit the attributes on
@DanielTames
@DanielTames 2 жыл бұрын
@@JohnKomarnicki Awesome!! Thank you Also, idk why I can’t use defineEmmits or defineProps() without importing them, the editor shows an error, or I’m not sure if it’s a vetur or volar error
@Al-Misanthropic-Bundy
@Al-Misanthropic-Bundy 2 жыл бұрын
@@DanielTamesMake sure you are using
@dimjohn5878
@dimjohn5878 2 жыл бұрын
when i import the Modal to my parent component, the child component is shown in the script (Modal gets green) and not in the template (Modal is shown as plain text ). As a result i cant reuse the child component. Can someone help me plz
@manjirisonar4490
@manjirisonar4490 Жыл бұрын
Thanks for this tutorial. Its helpful but Getting following error. Can you please help me here? => E:\...\customelement\src\components\BaseInput.vue 14:3 error 'defineProps' is not defined no-undef ✖ 1 problem (1 error, 0 warnings)
@manamimnm
@manamimnm Жыл бұрын
try importing defineProps from vue
@karthikm.1804
@karthikm.1804 2 жыл бұрын
Tutorial on Product feedback app with vue
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
Great vid, but it be way better using pinia, just a comment
@ravibhati9270
@ravibhati9270 Жыл бұрын
Would be great if you can share, how the same BaseInput can be used with other types like (number, email, password, etc)
Reusable Form Components with Vue 3
14:18
Vue Mastery
Рет қаралды 54 М.
A Simple Vue 3 Reusable Skeleton Loader Component
13:02
John Komarnicki
Рет қаралды 11 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 74 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 29 МЛН
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 23 М.
Tidy Up Your Vue Forms
14:55
cdruc
Рет қаралды 4,6 М.
Easy Loading Pages With Vue Suspense
5:10
John Komarnicki
Рет қаралды 17 М.
Props and Emitters in Vue 3 (FULL TUTORIAL)
14:53
VueReference
Рет қаралды 17 М.
Vue Slots Simplified
7:25
LearnVue
Рет қаралды 56 М.
Refactoring Vue 3 code | Reusable Form Component | Reusable Components
19:36
Test driven development with Vue.js by Sarah Dayan
31:07
VueConf Toronto
Рет қаралды 35 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 755 М.
Write Reusable Code with Vue DYNAMIC COMPONENTS
4:24
LearnVue
Рет қаралды 31 М.