Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,450 --> 00:00:02,160
Hey, guys, welcome back here.
2
00:00:02,160 --> 00:00:05,430
In the previous lecture, we have created a new composition and function.
3
00:00:05,670 --> 00:00:11,110
We are calling Keels out, which returns are competent properties in this lecture.
4
00:00:11,130 --> 00:00:15,660
I like to show you that you can react to these complex properties of the changes or the values.
5
00:00:16,510 --> 00:00:17,030
Let's start.
6
00:00:17,040 --> 00:00:22,050
Let's see, I registered of you and I already introduce you vouchers, but I'll talk about them a little
7
00:00:22,050 --> 00:00:22,560
bit tomorrow.
8
00:00:22,560 --> 00:00:26,130
So you have an overview of them and you will see what I want to do.
9
00:00:26,970 --> 00:00:30,360
So what I want to do in this lecture is just simply display the message.
10
00:00:30,360 --> 00:00:35,850
When we are getting the error and when we successfully register, I would like to redirect we are to
11
00:00:35,850 --> 00:00:36,780
our homepage.
12
00:00:37,320 --> 00:00:38,220
OK, so let's do it.
13
00:00:38,970 --> 00:00:41,430
For this reason, I will create here a voucher.
14
00:00:41,430 --> 00:00:42,540
So right here, watch.
15
00:00:43,200 --> 00:00:43,640
All right.
16
00:00:43,650 --> 00:00:50,100
And we'll be watching here, Arora, although I can't watch it or remember, I have access to computer
17
00:00:50,100 --> 00:00:55,710
properties or whatever I'm returning from years I have access to so I can react to the changes of communal
18
00:00:55,710 --> 00:00:57,660
properties, error and is processing.
19
00:00:59,140 --> 00:01:05,650
So enregistre I can watch that error of values as they are changing, so I can check here at our message.
20
00:01:06,180 --> 00:01:13,030
OK, and I can check if I have an error message that simply display me alert and elevate his message
21
00:01:13,030 --> 00:01:13,260
out.
22
00:01:13,330 --> 00:01:14,130
So message here.
23
00:01:15,890 --> 00:01:20,600
OK, even if I don't check here for a message, then I will check also for empty messages of anybody
24
00:01:20,600 --> 00:01:23,270
starting this state before register, and I don't want to do that.
25
00:01:23,270 --> 00:01:25,520
So just watch whenever you have some message.
26
00:01:27,520 --> 00:01:34,390
OK, let's save it to let's go here and yell at submit and sign up, and you can see we are getting
27
00:01:34,390 --> 00:01:38,710
here now at Ah, so that's how you can watch the now changes of the error.
28
00:01:39,550 --> 00:01:44,740
And if I would remove this message here, if statement at all, I would react to have a change over
29
00:01:44,740 --> 00:01:45,240
the message.
30
00:01:45,250 --> 00:01:50,260
So even beyond that, we are starting to, for example, and I will go here, sign up.
31
00:01:51,520 --> 00:01:52,150
OK.
32
00:01:52,180 --> 00:01:54,550
Sign up, you can see empty message here.
33
00:01:56,130 --> 00:01:56,670
All right.
34
00:01:57,810 --> 00:02:02,160
So be sure you are making you have a statement here to check if you have some error message.
35
00:02:02,880 --> 00:02:04,680
And the other thing too, how to redirect.
36
00:02:04,830 --> 00:02:06,540
I will show you first.
37
00:02:07,830 --> 00:02:12,890
Not ideal way will handle it very, very simply.
38
00:02:12,900 --> 00:02:16,050
And after that, I will be doing some refactoring, but in the there lectures.
39
00:02:16,380 --> 00:02:20,700
So for now, you can watch two is processing is processing.
40
00:02:21,090 --> 00:02:25,020
So how do we know that they are successfully registered?
41
00:02:25,650 --> 00:02:28,560
We are successfully registered in these two cases.
42
00:02:28,560 --> 00:02:32,250
Is processing is processing must be false.
43
00:02:32,490 --> 00:02:32,940
OK.
44
00:02:33,120 --> 00:02:37,710
It must be false because we we should we should finish processing orchestration.
45
00:02:37,710 --> 00:02:39,030
So processing has to be false.
46
00:02:40,050 --> 00:02:44,000
Also, the previous state of the processing should be true.
47
00:02:44,010 --> 00:02:49,020
So we should be processing first of anyone to register and after that, after we register the processing,
48
00:02:49,020 --> 00:02:50,070
the toggle to the false.
49
00:02:50,790 --> 00:02:54,390
So previous processing should be true.
50
00:02:55,230 --> 00:02:56,750
So we should be processing there.
51
00:02:56,760 --> 00:02:59,880
We should be finished processing and we shouldn't have any errors.
52
00:02:59,880 --> 00:03:01,050
So that's very important.
53
00:03:01,050 --> 00:03:10,170
And the error should be we should not have any error case or industry case as we would like to redirect
54
00:03:10,170 --> 00:03:12,060
to the other page, let's say two home page.
55
00:03:12,540 --> 00:03:12,930
So.
56
00:03:14,130 --> 00:03:18,780
He's processing is currently false, but you have been processing previously and we don't have any arrows
57
00:03:18,780 --> 00:03:19,650
done even to redirect.
58
00:03:20,280 --> 00:03:24,720
So let's drop it in the multiple and regulative statement and override here.
59
00:03:25,690 --> 00:03:29,410
OK, so from its processing, we can get it, we can get the values of this processing.
60
00:03:29,440 --> 00:03:33,800
OK, they can get here, values their current value and also previous value, as I showed you with the
61
00:03:33,800 --> 00:03:35,890
voucher watchers already before.
62
00:03:37,090 --> 00:03:42,100
So the value of processing and previous processing was.
63
00:03:42,310 --> 00:03:47,470
That's how we can get the values and it will be larger if processing is true.
64
00:03:48,250 --> 00:03:51,340
So it's equal to true how you can deliver it.
65
00:03:51,340 --> 00:03:58,030
You can be it that simply, if processing this statement can be just if you have the processing and
66
00:03:58,720 --> 00:04:02,090
previous processing is equal to false, how you can rewrite it.
67
00:04:02,110 --> 00:04:06,010
You can simplify it here, exclamation mark in front of it and you can remove this part.
68
00:04:07,030 --> 00:04:15,250
OK, so if processing is currently oh, actually other way around, the guys, if processing is false.
69
00:04:15,280 --> 00:04:16,660
OK, so that's what I did.
70
00:04:16,660 --> 00:04:18,670
Buy more time if processing is false.
71
00:04:19,790 --> 00:04:21,520
So the processing processing currently.
72
00:04:22,450 --> 00:04:29,200
And how they can anybody, they can write the question about in the front of this and previous processing
73
00:04:29,200 --> 00:04:30,740
is true, so they have been processing.
74
00:04:31,060 --> 00:04:31,450
OK?
75
00:04:31,810 --> 00:04:33,310
And we don't have any errors.
76
00:04:33,580 --> 00:04:39,130
So if that exclamation mark and we don't have any errors, so we can check here if we don't have any
77
00:04:39,130 --> 00:04:41,920
error like this and we don't have any error.
78
00:04:42,430 --> 00:04:44,110
Remember exclamation mark in front?
79
00:04:46,380 --> 00:04:51,180
And I can safely say now that we have the energy to start and I can redirect the other page to congratulate
80
00:04:51,180 --> 00:04:51,590
this.
81
00:04:52,350 --> 00:04:56,610
Nobody can access their globally accessible property around their.
82
00:04:58,810 --> 00:05:04,700
They're out there and they can try their push OK and push the better of a specified path.
83
00:05:04,720 --> 00:05:08,450
And since they're going to home page in this case, almost as if they are empty pop like this and this
84
00:05:08,450 --> 00:05:09,760
is what gets me to home page.
85
00:05:10,450 --> 00:05:13,120
So that's what you can do in this case.
86
00:05:13,660 --> 00:05:14,350
Please, let's save it.
87
00:05:14,350 --> 00:05:15,010
Let's try it out.
88
00:05:15,020 --> 00:05:16,390
So go here.
89
00:05:16,510 --> 00:05:23,980
Let me finish, and I'll let you throw my 11 to use there at 11 a.m. to come test 11 a password.
90
00:05:24,400 --> 00:05:24,940
Test.
91
00:05:25,780 --> 00:05:26,890
Test, test.
92
00:05:27,370 --> 00:05:27,760
Test.
93
00:05:27,790 --> 00:05:28,900
Let's signup.
94
00:05:29,830 --> 00:05:31,510
And I that I should go to one page.
95
00:05:31,540 --> 00:05:31,950
Yeah.
96
00:05:31,990 --> 00:05:36,700
So to this four, I can I can go back to register and I can try to display errors.
97
00:05:36,820 --> 00:05:39,160
Yeah, it's parking lot.
98
00:05:39,160 --> 00:05:42,190
Okay, so that's a good idea from his lecture.
99
00:05:42,190 --> 00:05:46,960
Just a very simple handling of errors and also redirect functionality.
100
00:05:47,230 --> 00:05:49,450
Of course, we'll improve it in the next two lectures.
101
00:05:49,690 --> 00:05:52,570
So let's continue with the next lecture.
102
00:05:52,570 --> 00:05:53,380
I hope to see you later.
103
00:05:53,560 --> 00:05:53,890
Yes.
9328
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.