Use Vue Teleport to Make Modals and Popups

  Рет қаралды 32,345

LearnVue

LearnVue

Күн бұрын

Пікірлер: 25
@DontFollowZim
@DontFollowZim 2 жыл бұрын
Short and to the point. Love it. You may not hit things with a lot of depth, or you might fly through something before it soaks into someone's head sometimes, but the conciseness means they have time to rewatch it multiple times until it clicks. Love your style.
@ransela6139
@ransela6139 3 жыл бұрын
I tend to do most of my vue learning/referencing in the docs as most video tuts rob one of time.. but your videos are complete and concise.. thank you and well done! I'm sure your channel will grow in no time at all.
@LearnVue
@LearnVue 3 жыл бұрын
thank you - im making the kinds of videos i like to watch and glad you like them too!
@RaphaelDDL
@RaphaelDDL 2 жыл бұрын
I totally agree with that statement. Some parts might show a bit quickly but we have a pause button for that if we need to slowly read. and even so, when it's fast, it's just because isn't the main focus of the video, like the styling for example. So in short, it is well explained and at great pace. I'm loving these videos.
@cheryl_jones
@cheryl_jones 2 жыл бұрын
I watched this video a few times to get my head around it. I've finally put the pieces together and can display all of my form components in modals now. Thanks so much for simplifying this!
@OdwallaJuice
@OdwallaJuice 3 жыл бұрын
Great explanation, thanks! I just used this feature on a modal implementation thanks to this video. One method I use to keep things organized is create a div with id="modals" after the #app div in the index.html file. Then I just put my inside the modals component. That way, no matter how many modals I need, they all get teleported inside the same container in the DOM. I can then do the same with popovers using a id="popovers" container. Super handy :)
@LearnVue
@LearnVue 3 жыл бұрын
that's awesome! i love the idea of using that to organize your code!
@jgonzo-san
@jgonzo-san 2 жыл бұрын
I'll have to try this out. I've created modals before but had a much more verbose way of doing it, using various watchers, vuex, etc to basically do the same thing. This seems easier to manage, thanks for the video!
@codewithguillaume
@codewithguillaume 2 жыл бұрын
God this helped me so much thank you guys :)
@chintanpurohit1987
@chintanpurohit1987 Жыл бұрын
Keep making such knowledgeable videos
@leob.699
@leob.699 3 жыл бұрын
Very cool and exciting video. I think it will be useful to me. Thank you👍
@LearnVue
@LearnVue 3 жыл бұрын
glad to hear! i think teleport is so cool 😀
@BukanDicki
@BukanDicki 3 жыл бұрын
Great explanation, keep making video bro👍
@expresstutorial3255
@expresstutorial3255 2 жыл бұрын
Wonderful, i want to learn more vue 3
@wesamnajjom6995
@wesamnajjom6995 9 ай бұрын
Is there a problem with teleport and vue router?, when i go to other routes they are empty
@ColinRichardson
@ColinRichardson 2 жыл бұрын
We have done something like this for Vue2 but in a MUCH more cumbersome way.. But, the only advantage we have is we have had to make our own singleton-stacking system where we can show each modal one at a time. (Usually because we have a modal open a modal, open a modal). I am hoping we can cobble the thing to make use of this technique..
@LearnVue
@LearnVue 2 жыл бұрын
ooh that sounds interesting! i wonder if implementing a singleton-stacking system with some extracted composition api logic and teleport would also work
@DontFollowZim
@DontFollowZim 2 жыл бұрын
While this is a cool programming conundrum to solve, it sounds to me like it would be better for you to work on changing your UX to use fewer modals
@ColinRichardson
@ColinRichardson 2 жыл бұрын
@@DontFollowZim not gonna happen. The structure of the data and nesting is designed dictated by our users. They can choose to make things in any order, and we must account for it.
@anhvu3780
@anhvu3780 2 жыл бұрын
where is the code for this teleport demo?
@Akosiyawin
@Akosiyawin 2 жыл бұрын
This is awesome
@lucakim27
@lucakim27 2 жыл бұрын
wheres the source code
@chikenmacnugget
@chikenmacnugget 2 жыл бұрын
Looks like a bad practice.
@truthteachers
@truthteachers 3 жыл бұрын
Rubbish. Are you trying to catch a rocket. Done just for views.
@killemalljustice
@killemalljustice 3 жыл бұрын
Useless comment, a s s h o l e
What is Vue 3 Script Setup??
3:51
LearnVue
Рет қаралды 23 М.
Two Vue Directives that Boost App Performance
3:28
LearnVue
Рет қаралды 29 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
A Few Ways to Improve Your Vue 3 Modals
3:44
LearnVue
Рет қаралды 23 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Should You Use Vue Slots Over Props?
4:26
John Komarnicki
Рет қаралды 3 М.
The New dialog HTML Element Changes Modals Forever
12:09
Web Dev Simplified
Рет қаралды 598 М.
The Easiest Way to Build Websites
10:56
Sajid
Рет қаралды 717 М.
How Vue Keep Alive Can Improve Your App
6:45
LearnVue
Рет қаралды 30 М.
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 27 М.
Make your own VUE DIRECTIVES in your app
6:26
LearnVue
Рет қаралды 11 М.
Avoid losing Reactivity in your Vue Application
10:32
Alexander Lichter
Рет қаралды 9 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 555 М.