Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
In the last lecture, we have started working on the reusable component in this sector will continue
without a profile model because we have a break, a couple of functionalities.
Let's fire than the first functionality we need to fix is update profilo because as you can see now,
we are not calling it at all.
Then you will search for that profile is not called here because before we had here a button on the
button to click and we have called the update profile.
But now we have this reusable model of wrapping around on a forum, and the model itself is responsible
for handling that.
Click here to save changes, but you can see there is no function to update the R form.
OK, let's fix it.
And how can we approach this issue?
What we could to do is simply pass the function, support function or our update profile into the exchange
model as a prop.
They can do that.
They can simply pass functions through that to the props.
So in our model of the View reusable model view, let's go to Europe Explorer default and let's define
here props now here.
Props Elizabeth.
If I hear this Typekit function, OK, we'll call it on model, submit all model, submit like this,
and we'll specify here couple information such as these.
These will be type of the function.
We'll be passing the function and required in this case.
Do we want to make the right call?
Maybe they donate.
Need can be changed later, everybody said.
But for now, it will be false.
And now in our Malala, do you still hear our real creative methods, methods like this and we'll call
these methods submit model so that your Subin model submit a model.
And here we'll be calling our method bracing for the prop on model, submit a standard model and hear
on model submit.
Of course, I could pass it straight away in a sea of changes are all models submit, but I'm doing
it this way because they'll be doing have some improvements later, so you will see why it is important.
So here should be this on what I'll submit.
So let's buy this button here, and let's click click and it'll call here submenu mode.
All right, so submit mode also.
Actually, it's also one more thing, and I've already capitalized after that's got your profile model
and your exchange model now you want to pass this prop, right?
So we'll probably have just created so we have great prop on what they'll submit can see on without
somebody already have here and we can positive function it or update profile.
So call here.
Update profile or how they are calling it a public profile?
Yes.
So as you can see here, this function a big profile is enter functionality here.
Can see.
Is getting passed to the props as a model submit function.
OK, so this is getting past the model, so we can imagine there are profiles getting pass on model
submits on our own model, submit here is basically this function a public profile.
Update the profile.
All right, and we are calling it inside, so this we are calling inside of SUBIT model, then the Subin
model is executed and very specific model execute.
That's a bit model is executed when you are clicking the button up in your template.
So when you click a button here, you look like you look across this model or model submit, which is
Zero Flags would have passed through here.
It's Oblates profile, so you should be updating the profile successfully.
There's a feeling think, though, that a lot of talk about, let's take a look at things later, let's
save it and let's go back to browser 0.35 in the case and then able click on the update profile now.
OK.
Let's change your name.
It should be changing.
OK, so a change of name save changes.
A profile has been updated, you can see the not closing the model, that's the only thing we need to
still handle, but the profile has been updated and fresh and I should have these changes here so we
can see the changes that are here.
OK, so just the last thing we need to fix is the closing of models.
While we are not closing in model, you can see they are passing our function.
Our passing, our banks and other public profile and is function of this profile on success.
And this open will be set to the to the false.
But they're not controlling is open through our model right here.
Profile model Leslie responsible for closing and opening the models.
So this bill and there's a lot of bargaining along that also be the only data is open because everything
is controlled.
Model opening and closing is handled here.
So we need to do some improvements here and this provider will do guys in the next lecture.
So far, a profile update functionality works so we can continue and do this small change in the next
lecture.
See you.
See you there.
Yes.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.