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)
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
Hey, guys, welcome back here.
In the previous lecture, we have created a new composition and function.
We are calling Keels out, which returns are competent properties in this lecture.
I like to show you that you can react to these complex properties of the changes or the values.
Let's start.
Let's see, I registered of you and I already introduce you vouchers, but I'll talk about them a little
bit tomorrow.
So you have an overview of them and you will see what I want to do.
So what I want to do in this lecture is just simply display the message.
When we are getting the error and when we successfully register, I would like to redirect we are to
our homepage.
OK, so let's do it.
For this reason, I will create here a voucher.
So right here, watch.
All right.
And we'll be watching here, Arora, although I can't watch it or remember, I have access to computer
properties or whatever I'm returning from years I have access to so I can react to the changes of communal
properties, error and is processing.
So enregistre I can watch that error of values as they are changing, so I can check here at our message.
OK, and I can check if I have an error message that simply display me alert and elevate his message
out.
So message here.
OK, even if I don't check here for a message, then I will check also for empty messages of anybody
starting this state before register, and I don't want to do that.
So just watch whenever you have some message.
OK, let's save it to let's go here and yell at submit and sign up, and you can see we are getting
here now at Ah, so that's how you can watch the now changes of the error.
And if I would remove this message here, if statement at all, I would react to have a change over
the message.
So even beyond that, we are starting to, for example, and I will go here, sign up.
OK.
Sign up, you can see empty message here.
All right.
So be sure you are making you have a statement here to check if you have some error message.
And the other thing too, how to redirect.
I will show you first.
Not ideal way will handle it very, very simply.
And after that, I will be doing some refactoring, but in the there lectures.
So for now, you can watch two is processing is processing.
So how do we know that they are successfully registered?
We are successfully registered in these two cases.
Is processing is processing must be false.
OK.
It must be false because we we should we should finish processing orchestration.
So processing has to be false.
Also, the previous state of the processing should be true.
So we should be processing first of anyone to register and after that, after we register the processing,
the toggle to the false.
So previous processing should be true.
So we should be processing there.
We should be finished processing and we shouldn't have any errors.
So that's very important.
And the error should be we should not have any error case or industry case as we would like to redirect
to the other page, let's say two home page.
So.
He's processing is currently false, but you have been processing previously and we don't have any arrows
done even to redirect.
So let's drop it in the multiple and regulative statement and override here.
OK, so from its processing, we can get it, we can get the values of this processing.
OK, they can get here, values their current value and also previous value, as I showed you with the
voucher watchers already before.
So the value of processing and previous processing was.
That's how we can get the values and it will be larger if processing is true.
So it's equal to true how you can deliver it.
You can be it that simply, if processing this statement can be just if you have the processing and
previous processing is equal to false, how you can rewrite it.
You can simplify it here, exclamation mark in front of it and you can remove this part.
OK, so if processing is currently oh, actually other way around, the guys, if processing is false.
OK, so that's what I did.
Buy more time if processing is false.
So the processing processing currently.
And how they can anybody, they can write the question about in the front of this and previous processing
is true, so they have been processing.
OK?
And we don't have any errors.
So if that exclamation mark and we don't have any errors, so we can check here if we don't have any
error like this and we don't have any error.
Remember exclamation mark in front?
And I can safely say now that we have the energy to start and I can redirect the other page to congratulate
this.
Nobody can access their globally accessible property around their.
They're out there and they can try their push OK and push the better of a specified path.
And since they're going to home page in this case, almost as if they are empty pop like this and this
is what gets me to home page.
So that's what you can do in this case.
Please, let's save it.
Let's try it out.
So go here.
Let me finish, and I'll let you throw my 11 to use there at 11 a.m. to come test 11 a password.
Test.
Test, test.
Test.
Let's signup.
And I that I should go to one page.
Yeah.
So to this four, I can I can go back to register and I can try to display errors.
Yeah, it's parking lot.
Okay, so that's a good idea from his lecture.
Just a very simple handling of errors and also redirect functionality.
Of course, we'll improve it in the next two lectures.
So let's continue with the next lecture.
I hope to see you later.
Yes.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.