Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,150 --> 00:00:06,120
In the last lecture, we have started working on the reusable component in this sector will continue
2
00:00:06,120 --> 00:00:10,140
without a profile model because we have a break, a couple of functionalities.
3
00:00:11,100 --> 00:00:16,920
Let's fire than the first functionality we need to fix is update profilo because as you can see now,
4
00:00:17,100 --> 00:00:18,350
we are not calling it at all.
5
00:00:18,360 --> 00:00:23,580
Then you will search for that profile is not called here because before we had here a button on the
6
00:00:23,580 --> 00:00:26,670
button to click and we have called the update profile.
7
00:00:26,670 --> 00:00:32,760
But now we have this reusable model of wrapping around on a forum, and the model itself is responsible
8
00:00:32,760 --> 00:00:33,570
for handling that.
9
00:00:33,580 --> 00:00:38,790
Click here to save changes, but you can see there is no function to update the R form.
10
00:00:40,200 --> 00:00:41,370
OK, let's fix it.
11
00:00:41,370 --> 00:00:43,130
And how can we approach this issue?
12
00:00:43,140 --> 00:00:50,460
What we could to do is simply pass the function, support function or our update profile into the exchange
13
00:00:50,460 --> 00:00:52,260
model as a prop.
14
00:00:52,500 --> 00:00:53,040
They can do that.
15
00:00:53,040 --> 00:00:56,190
They can simply pass functions through that to the props.
16
00:00:57,450 --> 00:01:05,310
So in our model of the View reusable model view, let's go to Europe Explorer default and let's define
17
00:01:05,310 --> 00:01:06,800
here props now here.
18
00:01:06,810 --> 00:01:08,670
Props Elizabeth.
19
00:01:08,670 --> 00:01:15,510
If I hear this Typekit function, OK, we'll call it on model, submit all model, submit like this,
20
00:01:15,870 --> 00:01:18,620
and we'll specify here couple information such as these.
21
00:01:18,750 --> 00:01:20,560
These will be type of the function.
22
00:01:21,000 --> 00:01:23,970
We'll be passing the function and required in this case.
23
00:01:24,420 --> 00:01:25,440
Do we want to make the right call?
24
00:01:25,440 --> 00:01:26,470
Maybe they donate.
25
00:01:26,470 --> 00:01:28,290
Need can be changed later, everybody said.
26
00:01:28,300 --> 00:01:30,020
But for now, it will be false.
27
00:01:32,340 --> 00:01:40,800
And now in our Malala, do you still hear our real creative methods, methods like this and we'll call
28
00:01:40,800 --> 00:01:47,820
these methods submit model so that your Subin model submit a model.
29
00:01:48,480 --> 00:01:54,840
And here we'll be calling our method bracing for the prop on model, submit a standard model and hear
30
00:01:55,470 --> 00:01:57,180
on model submit.
31
00:01:59,140 --> 00:02:03,760
Of course, I could pass it straight away in a sea of changes are all models submit, but I'm doing
32
00:02:03,760 --> 00:02:09,430
it this way because they'll be doing have some improvements later, so you will see why it is important.
33
00:02:09,430 --> 00:02:12,250
So here should be this on what I'll submit.
34
00:02:14,470 --> 00:02:22,570
So let's buy this button here, and let's click click and it'll call here submenu mode.
35
00:02:22,570 --> 00:02:24,430
All right, so submit mode also.
36
00:02:25,580 --> 00:02:30,500
Actually, it's also one more thing, and I've already capitalized after that's got your profile model
37
00:02:31,490 --> 00:02:34,670
and your exchange model now you want to pass this prop, right?
38
00:02:34,680 --> 00:02:39,460
So we'll probably have just created so we have great prop on what they'll submit can see on without
39
00:02:39,470 --> 00:02:43,250
somebody already have here and we can positive function it or update profile.
40
00:02:43,260 --> 00:02:43,850
So call here.
41
00:02:43,970 --> 00:02:48,740
Update profile or how they are calling it a public profile?
42
00:02:48,740 --> 00:02:49,040
Yes.
43
00:02:50,240 --> 00:02:55,430
So as you can see here, this function a big profile is enter functionality here.
44
00:02:56,730 --> 00:02:57,290
Can see.
45
00:02:58,490 --> 00:03:03,650
Is getting passed to the props as a model submit function.
46
00:03:04,790 --> 00:03:10,610
OK, so this is getting past the model, so we can imagine there are profiles getting pass on model
47
00:03:10,610 --> 00:03:15,830
submits on our own model, submit here is basically this function a public profile.
48
00:03:17,080 --> 00:03:19,300
Update the profile.
49
00:03:20,050 --> 00:03:26,590
All right, and we are calling it inside, so this we are calling inside of SUBIT model, then the Subin
50
00:03:26,590 --> 00:03:28,830
model is executed and very specific model execute.
51
00:03:28,840 --> 00:03:34,720
That's a bit model is executed when you are clicking the button up in your template.
52
00:03:34,720 --> 00:03:40,360
So when you click a button here, you look like you look across this model or model submit, which is
53
00:03:40,360 --> 00:03:41,760
Zero Flags would have passed through here.
54
00:03:41,770 --> 00:03:45,010
It's Oblates profile, so you should be updating the profile successfully.
55
00:03:46,730 --> 00:03:50,240
There's a feeling think, though, that a lot of talk about, let's take a look at things later, let's
56
00:03:50,240 --> 00:03:56,630
save it and let's go back to browser 0.35 in the case and then able click on the update profile now.
57
00:03:58,010 --> 00:03:58,370
OK.
58
00:03:58,430 --> 00:03:59,490
Let's change your name.
59
00:03:59,510 --> 00:04:00,470
It should be changing.
60
00:04:00,530 --> 00:04:03,050
OK, so a change of name save changes.
61
00:04:04,410 --> 00:04:07,540
A profile has been updated, you can see the not closing the model, that's the only thing we need to
62
00:04:07,660 --> 00:04:12,190
still handle, but the profile has been updated and fresh and I should have these changes here so we
63
00:04:12,190 --> 00:04:13,300
can see the changes that are here.
64
00:04:14,650 --> 00:04:17,350
OK, so just the last thing we need to fix is the closing of models.
65
00:04:17,350 --> 00:04:21,820
While we are not closing in model, you can see they are passing our function.
66
00:04:23,300 --> 00:04:29,570
Our passing, our banks and other public profile and is function of this profile on success.
67
00:04:29,930 --> 00:04:33,500
And this open will be set to the to the false.
68
00:04:34,660 --> 00:04:37,990
But they're not controlling is open through our model right here.
69
00:04:38,260 --> 00:04:41,250
Profile model Leslie responsible for closing and opening the models.
70
00:04:41,250 --> 00:04:46,210
So this bill and there's a lot of bargaining along that also be the only data is open because everything
71
00:04:46,210 --> 00:04:46,980
is controlled.
72
00:04:47,140 --> 00:04:49,510
Model opening and closing is handled here.
73
00:04:49,870 --> 00:04:54,280
So we need to do some improvements here and this provider will do guys in the next lecture.
74
00:04:54,490 --> 00:05:00,070
So far, a profile update functionality works so we can continue and do this small change in the next
75
00:05:00,070 --> 00:05:00,450
lecture.
76
00:05:00,510 --> 00:05:00,850
See you.
77
00:05:01,420 --> 00:05:01,990
See you there.
78
00:05:02,260 --> 00:05:02,590
Yes.
7611
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.