WEBVTT

00:00.840 --> 00:02.280
Hi everyone.

00:03.160 --> 00:13.480
In this video we will think about how we can show the current reaction in 3D team right here also.

00:13.960 --> 00:21.120
So for example, when I get on boss I want it will have the.

00:23.600 --> 00:33.400
The some property to know what is the current reaction.

00:34.040 --> 00:36.320
Okay so how do I know that.

00:36.600 --> 00:39.600
Well we have a strong strategy to do that.

00:40.240 --> 00:41.520
Let me show you what I mean.

00:41.560 --> 00:45.000
Firstly we can create another controller.

00:45.480 --> 00:50.960
First of all I get my reaction controller okay.

00:52.440 --> 00:56.920
And in later in the forehand.

00:59.460 --> 01:03.740
When we get on Mars.

01:03.860 --> 01:04.300
Okay.

01:04.300 --> 01:06.900
When we get on Mars with this.

01:06.940 --> 01:15.100
And by over here, we will mark a cone to this thing one more time.

01:15.100 --> 01:21.900
We will call the API two times and somehow override that in the front end side.

01:22.260 --> 01:22.740
Okay.

01:23.100 --> 01:31.860
It means we will call this thing and call this thing and do for front end size.

01:32.300 --> 01:32.620
Okay.

01:32.660 --> 01:35.300
What about if we have a 100 box?

01:36.260 --> 01:39.860
It means right here we should call override.

01:40.420 --> 01:40.740
Okay.

01:40.780 --> 01:41.780
We will override.

01:43.900 --> 01:46.420
100 times okay.

01:46.740 --> 01:50.140
I don't want builders at all, right?

01:50.340 --> 01:58.280
Instead of create and mark another cone, I want to somehow.

02:00.400 --> 02:01.360
Modify.

02:02.080 --> 02:02.840
Over here.

02:04.880 --> 02:05.400
Okay.

02:06.080 --> 02:19.920
I want it to somehow address the current and respawn back over here when we get on boss.

02:20.800 --> 02:22.640
And we will achieve this thing.

02:23.040 --> 02:24.520
So let me show you what I mean.

02:25.240 --> 02:25.600
Mhm.

02:27.080 --> 02:28.520
Right here is the file one.

02:29.040 --> 02:30.160
This is the file one.

02:31.240 --> 02:43.720
What we need to do right now um in here if you remember, if you remember we have a file existing.

02:46.400 --> 02:50.440
Right between right here inside file one.

02:50.480 --> 02:56.300
I will, uh, boost instead of one right here.

02:56.940 --> 02:58.580
I will boost the current user.

02:58.820 --> 02:59.260
Okay.

03:00.260 --> 03:02.420
Watch me and you will be able to spend.

03:07.300 --> 03:10.500
More current user over here instead of one.

03:10.940 --> 03:15.060
I will move the current user will be user.

03:17.500 --> 03:17.980
Okay.

03:18.380 --> 03:22.940
And right now we need we just need to call this thing.

03:25.140 --> 03:26.900
Or my reaction.

03:27.380 --> 03:32.340
Take away this dot reaction service dot file.

03:33.380 --> 03:33.780
Okay.

03:33.780 --> 03:38.100
Right here we just need to move the box plot underscore array.

03:40.420 --> 03:44.620
And user current user dot array.

03:45.540 --> 03:48.180
And we will find the reaction right.

03:51.780 --> 03:52.420
Underscore.

03:55.240 --> 03:56.920
The screen.

03:59.400 --> 04:01.760
But we got a different error.

04:01.800 --> 04:04.120
We got, uh.

04:04.520 --> 04:05.280
Right here.

04:05.600 --> 04:08.800
Uh, because right here I unify.

04:10.600 --> 04:19.840
Uh, let me show you in here in a bus service right here, I use the file one method.

04:20.720 --> 04:24.920
Um, so for that reason in this case.

04:27.200 --> 04:29.960
We need to create another method.

04:30.040 --> 04:30.360
Okay.

04:30.400 --> 04:32.880
We cannot use this thing.

04:32.920 --> 04:37.760
Also, let me duplicate and I will go to file one with.

04:40.240 --> 04:44.600
Uh, with my reaction.

04:45.680 --> 04:50.360
And let me remove everything over here.

04:51.720 --> 04:52.430
Remove Yeah.

04:52.430 --> 04:52.790
So.

04:54.510 --> 04:54.870
All right.

04:54.870 --> 04:57.190
We already have one with my reaction.

04:57.190 --> 05:04.430
And inside the controller we just need to go to the file by one with my reaction.

05:08.550 --> 05:09.070
Okay.

05:10.790 --> 05:13.030
We only use this this guy.

05:13.430 --> 05:19.750
And with this thing we can mark it with private function because it only used inside the function over

05:19.750 --> 05:20.910
here okay.

05:21.070 --> 05:26.710
We can mark it with private after we already have my reaction.

05:26.710 --> 05:29.550
Let me show you my reaction time.

05:37.070 --> 05:42.070
Now let say.

05:49.310 --> 05:51.850
For now I will try to drop everything.

06:04.610 --> 06:08.770
I will do zero for consistency right now.

06:14.730 --> 06:15.770
And after that?

06:16.050 --> 06:18.850
After that, if I.

06:21.770 --> 06:23.010
Get the boss.

06:25.970 --> 06:27.290
Using this invoice.

06:29.850 --> 06:39.290
Let me say after that we got only five because we don't have time right now, right?

06:40.610 --> 06:45.410
And what about if I add a reaction?

06:47.010 --> 06:49.550
Let me go with the have over here.

06:51.790 --> 06:57.350
Say and get a boss again right here.

06:57.350 --> 07:00.070
After we will have a halfway.

07:00.350 --> 07:00.830
Okay.

07:01.230 --> 07:01.990
It's mean.

07:02.630 --> 07:07.550
This guy will be clearly about the what we want, right?

07:08.190 --> 07:10.190
It can be undefined if it's only five.

07:10.230 --> 07:14.350
We will not show the current reaction.

07:14.830 --> 07:15.790
If it's half.

07:15.990 --> 07:19.430
We will somehow override us in the front end.

07:19.470 --> 07:22.350
Okay, that's what we want, right?

07:23.310 --> 07:25.310
Uh, right here we will pass.

07:27.750 --> 07:29.550
Uh, with a boss.

07:29.830 --> 07:45.590
And my reaction will be my reaction, question mark, plot E and all that.

07:45.590 --> 07:47.570
Because this can be undefined, right?

07:49.210 --> 07:49.890
Undefined.

07:49.890 --> 07:51.450
We will not care about us.

07:53.810 --> 07:56.490
So after that.

07:56.530 --> 08:02.450
After that, we need to fix the response to this one.

08:05.050 --> 08:05.770
Right here.

08:11.050 --> 08:12.970
We need to deal.

08:19.090 --> 08:19.930
With the.

08:20.170 --> 08:26.050
My reaction will be I read some time.

08:33.730 --> 08:35.450
So let me say.

08:40.290 --> 08:43.050
Right here we got internal server error.

08:44.510 --> 08:49.190
And not read on the fly screen.

08:51.590 --> 08:51.950
Mm.

08:55.430 --> 08:55.830
Hmm.

09:09.350 --> 09:10.750
Let me try one command.

09:22.870 --> 09:23.790
Set over here.

09:25.350 --> 09:28.070
We still have the error.

09:31.750 --> 09:32.510
In here.

09:34.550 --> 09:37.270
Let me say with error.

09:37.310 --> 09:41.230
When I return, let me go back to return the boss.

09:54.050 --> 10:02.250
For guys with this line right here will be the error.

10:05.770 --> 10:08.410
Okay, boss.

10:20.890 --> 10:22.650
Let me test again.

10:34.050 --> 10:37.970
Right here we have an error.

10:39.970 --> 10:40.890
The reason?

10:40.950 --> 10:45.710
Because the mosque right here is not a blank desk, but work.

10:46.150 --> 10:48.670
Okay, it's not a blank password.

10:49.510 --> 10:50.030
Sorry.

10:50.350 --> 10:52.390
It's not a planner object.

10:52.550 --> 10:53.070
Okay.

10:53.950 --> 10:57.670
Instead of this, is the object come from the rules.

10:58.190 --> 11:02.310
So for a reason, it not work when we use the spread.

11:02.350 --> 11:03.230
Operator.

11:03.990 --> 11:07.310
Let me show the topic rules.

11:09.790 --> 11:10.510
Convert.

11:12.710 --> 11:15.190
Document to object.

11:15.590 --> 11:16.070
Okay.

11:16.390 --> 11:19.190
Let me start the topic over here.

11:24.670 --> 11:26.070
We can have.

11:30.790 --> 11:31.270
Three.

11:34.750 --> 11:35.230
Over.

11:35.230 --> 11:36.990
We can use the link method.

11:37.350 --> 11:40.570
Let me show you over here I can use the link method.

11:44.650 --> 11:47.410
Where it's already flush the object, right?

11:51.730 --> 11:52.690
Let me say that again.

11:55.530 --> 11:55.970
Okay.

11:55.970 --> 11:57.450
It's already work.

11:58.010 --> 12:01.570
Let me open the video and uncomment.

12:20.970 --> 12:21.450
Right here.

12:21.450 --> 12:22.490
We already have a.

12:22.530 --> 12:24.330
My reaction will be happy.

12:24.770 --> 12:25.890
Very very cool.

12:26.570 --> 12:29.650
Let me create one more box.

12:34.330 --> 12:34.770
Okay.

12:34.770 --> 12:36.010
Some stuff like that.

12:39.430 --> 12:42.030
And let's get on board again.

12:42.430 --> 12:42.990
Oh, sorry.

12:43.910 --> 12:46.470
Uh, the get onboard view doesn't have.

12:46.910 --> 12:48.350
But let me get a bus.

12:51.790 --> 12:52.830
Now over here.

12:53.790 --> 12:58.670
Um, we don't have anything, so it will not solve.

13:00.070 --> 13:01.510
Okay, you got the idea right?

13:01.510 --> 13:03.830
Now, let's fix the get on.

13:03.870 --> 13:09.390
Also, when I get on, I also want to attach the my reaction.

13:10.270 --> 13:13.230
For that reason in this guy, I will do my.

13:15.990 --> 13:16.990
Best over here.

13:17.030 --> 13:23.870
Oh actually because the file file on right here don't use anything over here.

13:23.870 --> 13:24.310
Right.

13:25.110 --> 13:29.150
So for that reason we can copy directly over here.

13:31.430 --> 13:39.620
So make sure we always use the line method to convert the Mongols into the.

13:41.660 --> 13:43.380
Normal JavaScript object.

13:53.780 --> 13:59.340
And right here we will boost the current users over here.

14:01.500 --> 14:02.860
And inside the controller.

14:07.700 --> 14:08.860
Is to get all.

14:13.900 --> 14:15.660
We need to load the current user.

14:25.380 --> 14:25.900
Okay.

14:27.220 --> 14:28.980
And right here.

14:33.260 --> 14:36.760
We will fight this thing.

14:45.640 --> 14:47.840
Over right now will be very easy.

14:48.400 --> 14:50.240
We just need to return the boss.

14:53.040 --> 14:54.200
We need to map it.

14:56.920 --> 14:57.440
To the boss.

14:57.440 --> 14:58.000
Right here.

14:59.400 --> 14:59.880
Okay.

15:00.600 --> 15:02.160
Inside object.

15:02.160 --> 15:05.760
We need to copy this thing.

15:10.080 --> 15:10.400
Where?

15:10.400 --> 15:13.360
It will be my reaction, right?

15:14.240 --> 15:17.040
You will assign a function.

15:18.960 --> 15:24.200
And after that, we need to return this here.

15:24.200 --> 15:24.640
So.

15:31.160 --> 15:31.640
Okay.

15:32.500 --> 15:33.980
Only let us.

15:42.620 --> 15:44.380
Let me get on, boss.

15:45.820 --> 15:46.220
Mm.

15:49.060 --> 15:51.020
Right now is not work.

15:54.580 --> 15:55.660
Let me say why.

16:02.940 --> 16:04.300
We are in town.

16:08.980 --> 16:12.860
Because this is the promise.

16:13.100 --> 16:13.500
Okay.

16:13.540 --> 16:21.740
When we use the assign function inside the map and when we return it mean this result right here will

16:21.740 --> 16:22.780
be the promise.

16:23.180 --> 16:29.660
For that reason, we will say the object over here, let me show you.

16:29.660 --> 16:34.520
For like we got And I will call boss with.

16:41.600 --> 16:45.440
A Y chromosome.

16:47.840 --> 16:50.520
And boost everything outside here.

16:56.760 --> 16:57.240
Okay.

16:58.040 --> 16:59.120
We will have.

16:59.880 --> 17:03.920
And let me return boss with reaction.

17:06.720 --> 17:07.400
Let me say.

17:15.640 --> 17:16.160
Okay.

17:16.200 --> 17:18.480
Right here is already work.

17:19.000 --> 17:23.680
And you can say we have a my reaction and some stuff right here.

17:24.400 --> 17:28.280
So that is that's for the video I hope you understand.

17:28.600 --> 17:29.840
And I will see you in the.
