Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,330 --> 00:00:00,750
Hello.
2
00:00:00,990 --> 00:00:07,890
In the last like driving to those your concept call to watch in these lecture bills continue with more
3
00:00:08,070 --> 00:00:09,590
improvements and many factors.
4
00:00:10,680 --> 00:00:13,690
OK, so let's take a look at our current structure every day.
5
00:00:13,690 --> 00:00:18,470
The watch that was just as a example so we can remove watch.
6
00:00:19,500 --> 00:00:20,340
OK, let's remove it.
7
00:00:20,340 --> 00:00:22,200
And let's remember the comments on Forget.
8
00:00:22,590 --> 00:00:24,510
Come here and the lazy.
9
00:00:24,510 --> 00:00:25,080
Let's remove.
10
00:00:27,190 --> 00:00:33,010
As we will take a look at your computer to download very elegant what we need to do in order to ask
11
00:00:33,010 --> 00:00:39,690
for a register state, we need to access store state user register error.
12
00:00:40,120 --> 00:00:42,730
That's very, very long statement here.
13
00:00:43,570 --> 00:00:44,380
That's not that nice.
14
00:00:44,440 --> 00:00:44,730
Right.
15
00:00:44,740 --> 00:00:49,960
So what we want to do instead, we would like to use some helper functions from the UX.
16
00:00:51,070 --> 00:00:51,500
OK.
17
00:00:51,520 --> 00:00:57,790
So under the script here, let's import here helper function called map state import curly brackets,
18
00:00:58,690 --> 00:01:00,810
maps state from view.
19
00:01:02,620 --> 00:01:06,930
What we can do now, I will just move this down.
20
00:01:06,940 --> 00:01:09,550
I will at it out, so still have a view of it.
21
00:01:09,880 --> 00:01:15,230
And instead of doing this call here, they come up to that level.
22
00:01:15,280 --> 00:01:16,300
They'll call here in upstate.
23
00:01:17,650 --> 00:01:20,230
You'll quite like this and it will provide a configuration object.
24
00:01:20,230 --> 00:01:27,640
Inside and outside this object, you'll specify your computed properties that are defined in the viewers.
25
00:01:28,100 --> 00:01:31,480
OK, so in this case, it would like to get error and processing.
26
00:01:33,410 --> 00:01:40,370
Soils, Arora, like this, you can define it as a function of the ability to run the state.
27
00:01:40,580 --> 00:01:45,450
OK, so edible director running the state and the function here parameter here.
28
00:01:45,760 --> 00:01:50,990
What will be getting here is a state from the vucic's so you can simply get here state.
29
00:01:51,560 --> 00:01:57,440
And this way you can write your state dot userra dot register.
30
00:01:57,800 --> 00:02:00,980
Dot error is sure there, but they can even short it more.
31
00:02:01,340 --> 00:02:05,940
Since we're getting here a state, we can this structure as the user from a state straightaway so that
32
00:02:05,960 --> 00:02:10,070
their curly brackets can bacteria user and they can write their user.
33
00:02:11,360 --> 00:02:12,560
Now it's much better because.
34
00:02:13,680 --> 00:02:18,690
I know that that we are getting here, use our module from the user module, I'd like to see the register
35
00:02:18,720 --> 00:02:23,640
state on the register I am accessing for error the structure here.
36
00:02:24,840 --> 00:02:27,300
State register error.
37
00:02:28,340 --> 00:02:28,670
OK.
38
00:02:29,930 --> 00:02:31,380
But you plays a stage with they use.
39
00:02:31,730 --> 00:02:32,060
OK.
40
00:02:32,900 --> 00:02:34,370
And let's say the same thing here.
41
00:02:34,950 --> 00:02:42,650
Let's do the same thing for its processing so that it's processing again, it'll function.
42
00:02:43,940 --> 00:02:47,490
This structure right here and it get here, user, and let's go down here.
43
00:02:47,520 --> 00:02:48,950
User register.
44
00:02:50,160 --> 00:02:51,590
Is processing.
45
00:02:52,120 --> 00:02:52,530
That's it.
46
00:02:54,950 --> 00:03:00,560
OK, so maybe that's the way you would like to go, the navigator, of course, verified, so let's
47
00:03:00,560 --> 00:03:01,540
say it plays a go to.
48
00:03:01,790 --> 00:03:03,170
But I was there as a refresh.
49
00:03:04,700 --> 00:03:05,940
Error and processing.
50
00:03:05,960 --> 00:03:10,520
OK, we currently don't have any other processing that's wrong, we should have you at all.
51
00:03:10,520 --> 00:03:11,240
Sign up.
52
00:03:11,570 --> 00:03:13,220
OK, we're not getting anything.
53
00:03:13,460 --> 00:03:14,210
Oh yeah, we're getting.
54
00:03:15,340 --> 00:03:18,800
We are getting better, but the processing of the aisle to get things, so probably I have some typo.
55
00:03:18,950 --> 00:03:20,050
OK, let me fix it.
56
00:03:21,940 --> 00:03:23,260
And I can see it straight away.
57
00:03:23,290 --> 00:03:26,620
I have a just typo is a processing uppercase.
58
00:03:26,650 --> 00:03:27,610
Now it should be fine.
59
00:03:29,740 --> 00:03:32,210
Yeah, I can see it's false sign up.
60
00:03:32,230 --> 00:03:32,830
And it's true.
61
00:03:34,140 --> 00:03:36,060
OK, guys, it's working perfectly.
62
00:03:36,180 --> 00:03:39,110
That's how you can do it this way, you can extract any state from there you.
63
00:03:39,330 --> 00:03:43,320
It's more elegant, it's more readable and clean.
64
00:03:44,010 --> 00:03:48,740
Now let's use its processing not done displayed like this.
65
00:03:48,770 --> 00:03:50,010
We can remove it.
66
00:03:50,760 --> 00:03:55,650
And what we can do instead is go to the button and they can disable button.
67
00:03:55,890 --> 00:03:57,750
Then we are processing.
68
00:03:59,180 --> 00:04:03,780
So you'll hear that they're binding kind of be here.
69
00:04:03,800 --> 00:04:09,890
Disabled one disabled, remember every attribute they have normally on HTML elements you can we can
70
00:04:09,890 --> 00:04:12,620
provide your binding and you can provide your normal variable.
71
00:04:13,430 --> 00:04:14,870
So we want to disable button.
72
00:04:15,980 --> 00:04:18,980
Valuable, then, the processing is processing.
73
00:04:19,760 --> 00:04:24,280
So now the button will be disabled and its processing is through.
74
00:04:25,880 --> 00:04:33,470
But I leave it like this, so it reflects just in case and let to hear a sign up, you will see while
75
00:04:33,470 --> 00:04:39,830
I am processing, I am I am blocking the buttons so complicated multiple times.
76
00:04:41,030 --> 00:04:42,360
Well, of course it is happening fast.
77
00:04:42,820 --> 00:04:47,850
The Conservative, your sign up, I'm getting her immediately aerosol and immediately it's enabled back
78
00:04:47,850 --> 00:04:48,210
again.
79
00:04:48,930 --> 00:04:51,210
But we are definitely definitely doing something.
80
00:04:51,210 --> 00:04:52,200
They are blocking the button.
81
00:04:55,120 --> 00:04:56,260
All right, guys, that's going to be it.
82
00:04:57,920 --> 00:05:01,270
We have new functionality now, you know, how to use maps state.
83
00:05:02,230 --> 00:05:07,400
They are looking at a button, you know, disabled and will continue in that lecture.
84
00:05:07,420 --> 00:05:08,920
I hope to see a lot of guys that years.
7405
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.