Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,120 --> 00:00:05,750
In the last lecture, we have started talking about a basic Voges concepts in it is like to continue
2
00:00:05,760 --> 00:00:09,030
with this and I will introduce you that properties.
3
00:00:09,960 --> 00:00:11,490
OK, let's start there.
4
00:00:11,490 --> 00:00:13,260
We have finished in our home view.
5
00:00:14,220 --> 00:00:17,220
And let's introduce here a couple of computer properties.
6
00:00:17,430 --> 00:00:20,600
You will vary the couple properties like these you already computed.
7
00:00:20,610 --> 00:00:22,530
I usually riding it about them.
8
00:00:22,530 --> 00:00:25,470
Efforts computed and the same as a methods.
9
00:00:26,760 --> 00:00:29,040
You will choose the name of your computed property.
10
00:00:29,400 --> 00:00:32,010
In this case, I would like to create two computed properties.
11
00:00:32,850 --> 00:00:39,000
One computed property will determine the length of my exchange list, and other computed property will
12
00:00:39,000 --> 00:00:42,690
be reacting to the count if the count will be a larger than 15.
13
00:00:42,930 --> 00:00:44,420
It will return true.
14
00:00:44,490 --> 00:00:46,740
Otherwise, it will return false.
15
00:00:48,480 --> 00:00:53,070
As you could see in the last lecture of the new jazz framework is super reactive.
16
00:00:53,100 --> 00:00:56,220
You don't need to write much code and you can achieve a lot of functionalities.
17
00:00:56,550 --> 00:01:01,650
And I really like this episode of jazz and a cappella properties are one of my favorite feature.
18
00:01:02,160 --> 00:01:04,610
So, for example, I will create here to compete properly.
19
00:01:04,740 --> 00:01:05,670
You can call it as you want.
20
00:01:06,030 --> 00:01:13,770
Call it Exchange List Exchange List Length X Change Just extension length, by the way.
21
00:01:13,770 --> 00:01:16,860
Exchange length, it's enough and what you're doing.
22
00:01:16,860 --> 00:01:20,910
I compare the properties you are reacting to the data or to the other complex properties.
23
00:01:21,120 --> 00:01:27,120
In this case, we want to react to the data of our exchanges here, but we'll say here a larger atrium
24
00:01:27,120 --> 00:01:29,400
because every communal property should return value.
25
00:01:30,060 --> 00:01:34,890
The value return in this exchange is not linked.
26
00:01:36,820 --> 00:01:42,040
So now the exchange length will determine the length of the exchanges in a data, it can gather exchange
27
00:01:42,040 --> 00:01:42,370
length.
28
00:01:43,520 --> 00:01:48,760
You can go up here and you can simply let's try this value here, right here.
29
00:01:49,680 --> 00:01:54,000
Exchange linked, linked here.
30
00:01:54,020 --> 00:01:56,840
So you know what the value is, we are getting ground here.
31
00:01:57,920 --> 00:01:59,200
OK, so what is the exchange length?
32
00:01:59,210 --> 00:02:01,580
We have only two items of exchange like should be to right.
33
00:02:01,590 --> 00:02:04,770
So let's refresh and you can see exchange length is is.
34
00:02:04,790 --> 00:02:07,920
So I counted an exchange linked to.
35
00:02:08,390 --> 00:02:09,680
It's not very nice promoted.
36
00:02:09,680 --> 00:02:14,720
So I will give up all of these elements into deals here like this.
37
00:02:15,170 --> 00:02:17,180
And also, what about this that they've.
38
00:02:18,300 --> 00:02:22,200
And Steve, here, so they are on the separate lines.
39
00:02:23,250 --> 00:02:23,700
OK.
40
00:02:24,510 --> 00:02:31,350
Exchange like two, but you can really see the power of the of these because if I will change and they'll
41
00:02:31,350 --> 00:02:36,950
exchange existentialist data, I will add here dynamically more items or I would remove the items this
42
00:02:37,200 --> 00:02:40,620
that properly would be reacting to this, which is very interesting.
43
00:02:41,580 --> 00:02:45,570
So the company property is all this checking.
44
00:02:46,560 --> 00:02:52,530
If there is dependencies that are changing dependencies in this case is the exchanges, because that's
45
00:02:52,530 --> 00:02:53,850
what we are using from our data.
46
00:02:54,510 --> 00:02:59,190
So if the exchanges data would to change, we would remove the items or other items.
47
00:02:59,520 --> 00:03:01,230
Diesel would dynamically change.
48
00:03:01,230 --> 00:03:07,260
And also our view would be dynamically changing depending on the items we would have in our data.
49
00:03:08,010 --> 00:03:10,350
I'll show you this on the counter-example.
50
00:03:12,070 --> 00:03:19,630
Let's read here another company property, and let's call it is bigger than a 15 is bigger than 15.
51
00:03:21,130 --> 00:03:25,390
And this property will be reacting to the change of the count.
52
00:03:25,690 --> 00:03:34,600
So the idea if this account is larger than the 15 returning false or it'll be true, actually, that's
53
00:03:34,600 --> 00:03:35,170
really true.
54
00:03:35,740 --> 00:03:39,520
Otherwise, a return me later may be false.
55
00:03:41,440 --> 00:03:41,890
OK?
56
00:03:42,640 --> 00:03:43,720
They can also simplify it.
57
00:03:43,720 --> 00:03:44,890
You can also have all of these.
58
00:03:44,900 --> 00:03:47,360
You know that as a one line, there are just simply video return.
59
00:03:47,950 --> 00:03:51,310
And this is larger than 15.
60
00:03:51,310 --> 00:03:51,970
OK, and you can.
61
00:03:51,970 --> 00:03:55,980
The name of this is exactly the same, but they are checking each one later.
62
00:03:56,560 --> 00:03:59,370
So if this is larger than 15, they'll be turning.
63
00:03:59,380 --> 00:04:01,800
The true value of this is smaller operator.
64
00:04:01,800 --> 00:04:08,980
Be telling a false value, not able to get it yet to go up back to my template and I will be right here.
65
00:04:10,310 --> 00:04:11,480
Very happy to hear an ADF.
66
00:04:12,860 --> 00:04:19,620
Actually, the county badger DPH is is larger.
67
00:04:20,600 --> 00:04:23,570
Then 15, OK.
68
00:04:23,600 --> 00:04:24,860
The curly brackets.
69
00:04:26,690 --> 00:04:32,270
Let's close a deal here, OK, and now we will see how how reactive it really is.
70
00:04:32,980 --> 00:04:33,060
OK?
71
00:04:33,770 --> 00:04:35,660
Properly, there'll be all this checking the count.
72
00:04:36,980 --> 00:04:40,820
OK, you can see if India is larger than 15.
73
00:04:40,820 --> 00:04:49,370
It's false because the count is then as there will be changing it 11, 12, 13, 14, 15 16.
74
00:04:50,030 --> 00:04:50,900
It's change you throw.
75
00:04:52,390 --> 00:04:58,870
OK, so that's the reactivity feature out of the box, and the compute properties is always checking
76
00:04:58,870 --> 00:05:00,010
for its dependencies.
77
00:05:01,170 --> 00:05:01,740
OK, so.
78
00:05:02,730 --> 00:05:07,560
These complex properties, every time we execute that whenever you are changing the count and your return
79
00:05:07,560 --> 00:05:10,950
again, your value are getting updated into the view, I can show it to you.
80
00:05:11,500 --> 00:05:12,540
All right, your console look.
81
00:05:15,080 --> 00:05:20,900
Re executing well, right, and you will see that every time.
82
00:05:23,080 --> 00:05:25,900
I'll change the value refresh.
83
00:05:27,640 --> 00:05:31,270
This copy of properties are executed and it will be returning the new value.
84
00:05:32,890 --> 00:05:36,430
OK, so that's I think it was going to be for these lecture.
85
00:05:36,760 --> 00:05:41,390
They can look at their computer properties, remember they are like a function, but they are really
86
00:05:41,410 --> 00:05:46,090
properties that you don't need to call them, who does need to access the cockpit properly without breaking
87
00:05:46,210 --> 00:05:50,290
any brackets to simply be connected to them as they count, for example.
88
00:05:50,590 --> 00:05:55,840
But they are in the background, also executing depending if their dependencies are executing their
89
00:05:55,840 --> 00:05:56,650
dependencies.
90
00:05:56,650 --> 00:06:00,580
Are the data here exchanges and the count?
91
00:06:02,460 --> 00:06:08,070
So that's going to be to let's continue in the next lecture, I see where you guys cheers.
8597
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.