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 previous lecture, we have fixed up this profile functionality in this lecture, we'll take a
look at while the model is closing.
Then the profile is updated.
All right, let's start with this.
And this is happening because, as I mentioned, the last lecture on a success is still executed is
this call is correct.
And also they are changing opening to the falls.
But this value is doing nothing, as you can see is open is not now in the template.
They are not controlling on a model.
From here, we are controlling our model from model view, and here we have these open images controlling
the state of the model.
So what we are going to do instead?
We'll be passing the callback through their own model, submit here, will either object like this available
will pass on success function, which will simply set this open.
This is open to be false.
False.
As I mentioned this on, what I'll submit here is is a basically your public profile function because
that's what you are passing, right?
So here are these public profile you are passing to on models.
Submit your own models, submit is the same function public profile which you are calling here and they'll
submit to.
These are public profile and you are calling the public profile and you are passing into its argument
as his argument on success callback function.
So now you know what you can do in a profile model.
We'll go to your public profile, you know, rather curly brackets and who can this actualize their
own success?
Because that's what you are passing through your model, the view, and simply got his own success function
here.
OK, so that's that's it.
Go to your mother, look for you for a second, so that's the function you are passing here.
All they'll submit and there's on typo, as you notice here.
There should be two scenes like this on success because that's what they are passing called the profile
profile model.
So remember about public profile.
You are getting passed to the props, to the model of the view and your own model submit is basically
your public profile at the same function of their profile and to this function through your model not
to be, you know, you're passing on success as a parameter here as an object.
There is a function of the own success and that's what you are.
The structure rising up here does the dysfunctionality to struggle is open to false?
Now you can try it out, and before that, we can also rebel from data is open because we don't require
it here any longer.
Let's say let's go back to our browsers.
The applications I believe for are just in case, and I will I believe, the profile informations update.
All right.
Remotest parts if changes?
It's closed.
Proposed updated.
Our refresh to see the change is really persists.
It should be.
And yeah.
OK, so now our model functionalities fixed, now we have our reusable model functionality, we can
reuse also in other components and it'll start started our exchange details, so they'll be working
here on a.
On our model here on the opportunity model, I'll be talking about more about opportunity feature in
the next lecture, so I hope to see you there.
Cheers.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.