5 Easy Ways To Pass Info To Vue Components!

  Рет қаралды 28,617

Program With Erik

Program With Erik

Күн бұрын

Пікірлер: 53
@ponic12
@ponic12 3 жыл бұрын
What about the event bus (emit)?
@scryptum
@scryptum 3 жыл бұрын
Inject method looks really useful. Thanks!
@oleksandr3275
@oleksandr3275 4 жыл бұрын
Hi Erik ! I am new in Vue js, and your tutorial is very helpful ! Thanks
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Glad it helped
@kimhakkol7199
@kimhakkol7199 3 жыл бұрын
Yes, my mind was blown while watching the video! Thank you so much! :)
@matthewbeardsley7004
@matthewbeardsley7004 4 жыл бұрын
Thanks for the overview Erik, I kinda wish there weren't so many ways, so that it is easier to follow convention
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Yeah, you are right. Just pick the easiest way for you
@Y2hlc3Rlcg
@Y2hlc3Rlcg 4 жыл бұрын
more of this Erik. this is very helpful! developer from Philippines.
@wind8x1
@wind8x1 3 жыл бұрын
This is the best formula of passing data in different ways.
@rabbyhossain6150
@rabbyhossain6150 4 жыл бұрын
With "vuex " I faced two problems : 1. Mutating state property directly and 2. while refreshing the page "vuex" state backs to its initial state. It will be great if you clear those concepts or show best practices.
@KostiaBazrov
@KostiaBazrov 4 жыл бұрын
PARRENT => provide() {return { myText: this.otherProps}} Child => inject['myText']
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Kostia Bazrov-WORK thats a good one , I was going to show how you can make an observable object using Vues observable , but I ran out of time. That could work to with inject
@Delere567
@Delere567 4 жыл бұрын
hey tutorial was great but i have a api data and using it in a vue page ok and now i passing a part of it to vomponent and it work nicely but when i refreshing the page it wont send the data again can you guide me to make it to pass data even after page refreshing please?
@rajikkali
@rajikkali 3 жыл бұрын
$parent is golden. I've built a ton of Vue apps and never knew about that one.
@christopher7540
@christopher7540 4 жыл бұрын
such a great video. thank you erik .please make a video about how we can use vue with express and mongodb. i know it is very easy to use firebase for database with vue but mongo with vue is a little bit confusing for begginers like me. thank you in advance
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
OK!
@timtitus7861
@timtitus7861 4 жыл бұрын
Excellent tutorial buddy! Really enjoyed this
@blokche_dev
@blokche_dev 4 жыл бұрын
Vuex may appear a bit cumbersome in some situtations. Event bus also may be a nice way to pass data across different components (with or without relations).
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
blokche_dev that’s another good one !
@dcernach
@dcernach 4 жыл бұрын
I couldn't agree more, just check this out: austincooper.dev/2019/08/09/vue-observable-state-store/
@scryptum
@scryptum 3 жыл бұрын
Could you make some videos about Vuex persistent Data and Cookies?
@osmelguarepo6523
@osmelguarepo6523 3 жыл бұрын
use cases of using refs and prototype?
@opereznet
@opereznet 4 жыл бұрын
Hi Erik, I have a Nuxt-Vuetify app which only has the default and index layouts. I'm trying $refs method to make changes on default.vue. If I add a {{ message }} on default's toolbar (v-app-bar and v-toolbar-tile) and change it from index.vue works perfect but didn't work on default's footer (v-footer v-row v-col), can you help me out? By the way, I really learn from your videos, you have high level of knowledge and know how to explain. Thanks.
@yongpinbong441
@yongpinbong441 3 жыл бұрын
Nuxt: What if the parent component is the default.vue from the layouts folder, would you still be able to send data from the default.vue to your components from either the page's folder or component's folder?
@onnot701
@onnot701 4 жыл бұрын
thx very informative video
@alexeypochivalin7692
@alexeypochivalin7692 4 жыл бұрын
Hi, thanks for video. But example with Vue.prototype don't work for me. In conole.log i have a vue is function and "Vue is a constructor and should be called with the `new` keyword". Can you help me, what could be the error ?
@vibonacci
@vibonacci 4 жыл бұрын
props + this.$parent is the fastest one for direct child / father exchange
@Same7ashY
@Same7ashY 4 жыл бұрын
Right, but "this.$parent" is considered a bad practice, I think. Plus you're technically not "passing" the data, instead you're reaching out for the parent and getting that data.
@nitinnanda1865
@nitinnanda1865 4 жыл бұрын
do you have the git project where you have NOT made these changes already? I want to follow along the video but git project already has the changes so it makes no sense.
@hai6460
@hai6460 4 жыл бұрын
anyone knows how to pass data between two components that aren't related. Thanks
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Then you'll need to use something like vuex
@hai6460
@hai6460 4 жыл бұрын
@@ProgramWithErik Yeah thank you, i also found out i could use something called 'Bus event' it did pretty good job
@raihan.nismara
@raihan.nismara 3 жыл бұрын
IT'S DOPE
@ytmrdk
@ytmrdk 4 жыл бұрын
How about Fire.$emit 😁, but thanks for this videos, excelent!
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Yes! I didn't mention that but yes
@HoracioDegiorgi
@HoracioDegiorgi 4 жыл бұрын
To favs. Thanks
@phredlane9081
@phredlane9081 3 жыл бұрын
Why not use events? That's the first thing that came to mind.
@moldovandorin6187
@moldovandorin6187 4 жыл бұрын
i tried for hours to make Vue.prototype work and it doesn't...it baffles me that in this tutorial it works...and I don't understand why in mine is not....damn
@Waelio
@Waelio 3 жыл бұрын
What about $emit ?? 😲😮😱😱😳😬
@karnjeet1
@karnjeet1 3 жыл бұрын
How to call child method from parent
@karnjeet1
@karnjeet1 3 жыл бұрын
We have index page all child page loaded inside of index page using routing. We require to consume method of child page from index
@jotasenator
@jotasenator 3 жыл бұрын
I was here hoping to find some $event in here..?!
@maskman4821
@maskman4821 4 жыл бұрын
the sixth way is using bus !
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
Yes, I thought about showing that, maybe next video
@dasten123
@dasten123 4 жыл бұрын
Parent: window.message = 'thisisaverygoodidea'; Child: setInterval(() => this.message = window.message, 1337);
@jamshediqbal7936
@jamshediqbal7936 4 жыл бұрын
I am a React developer. After watching this video, it reminds me of Angularjs 1.x days..
@peterugah9295
@peterugah9295 4 жыл бұрын
Second
@_nom_
@_nom_ 3 жыл бұрын
Vuex has a terrible API.
@dev9vil287
@dev9vil287 3 жыл бұрын
Your intro should be smaller
@taranrishith
@taranrishith 4 жыл бұрын
First!
Create Modals With Tailwind CSS and Vue Is Super Easy!
22:47
Program With Erik
Рет қаралды 18 М.
Every New Vue Developer Has Made These Mistakes...
18:04
Program With Erik
Рет қаралды 45 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
5 Patterns for Better Components in Vue.js - Michael Thiessen
29:08
VueConf Toronto
Рет қаралды 9 М.
Vue.js Tips: Use Slots The Right Way // VUE.JS SLOTS TUTORIAL WITH VUE 3
11:59
A Better Way To Create Vue Components With Props Using TypeScript
12:40
Program With Erik
Рет қаралды 10 М.
Vue 3: Reactivity Made Easy (ref, reactive, toRefs... oh my!)
13:04
Program With Erik
Рет қаралды 50 М.
Vue: Routing For Dummies
25:05
Program With Erik
Рет қаралды 52 М.
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,6 МЛН
Two Ways to Write Cleaner Components
4:40
LearnVue
Рет қаралды 29 М.
Vue 3 Composition API Introduction [FULL TUTORIAL]
23:46
Academind
Рет қаралды 177 М.
A Deep Dive Into Async Components In Vue! (Should You Use This?)
13:04
Program With Erik
Рет қаралды 22 М.