All language subtitles for 2. Computed Properties

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

In the last lecture, we have started talking about a basic Voges concepts in it is like to continue

with this and I will introduce you that properties.

OK, let's start there.

We have finished in our home view.

And let's introduce here a couple of computer properties.

You will vary the couple properties like these you already computed.

I usually riding it about them.

Efforts computed and the same as a methods.

You will choose the name of your computed property.

In this case, I would like to create two computed properties.

One computed property will determine the length of my exchange list, and other computed property will

be reacting to the count if the count will be a larger than 15.

It will return true.

Otherwise, it will return false.

As you could see in the last lecture of the new jazz framework is super reactive.

You don't need to write much code and you can achieve a lot of functionalities.

And I really like this episode of jazz and a cappella properties are one of my favorite feature.

So, for example, I will create here to compete properly.

You can call it as you want.

Call it Exchange List Exchange List Length X Change Just extension length, by the way.

Exchange length, it's enough and what you're doing.

I compare the properties you are reacting to the data or to the other complex properties.

In this case, we want to react to the data of our exchanges here, but we'll say here a larger atrium

because every communal property should return value.

The value return in this exchange is not linked.

So now the exchange length will determine the length of the exchanges in a data, it can gather exchange

length.

You can go up here and you can simply let's try this value here, right here.

Exchange linked, linked here.

So you know what the value is, we are getting ground here.

OK, so what is the exchange length?

We have only two items of exchange like should be to right.

So let's refresh and you can see exchange length is is.

So I counted an exchange linked to.

It's not very nice promoted.

So I will give up all of these elements into deals here like this.

And also, what about this that they've.

And Steve, here, so they are on the separate lines.

OK.

Exchange like two, but you can really see the power of the of these because if I will change and they'll

exchange existentialist data, I will add here dynamically more items or I would remove the items this

that properly would be reacting to this, which is very interesting.

So the company property is all this checking.

If there is dependencies that are changing dependencies in this case is the exchanges, because that's

what we are using from our data.

So if the exchanges data would to change, we would remove the items or other items.

Diesel would dynamically change.

And also our view would be dynamically changing depending on the items we would have in our data.

I'll show you this on the counter-example.

Let's read here another company property, and let's call it is bigger than a 15 is bigger than 15.

And this property will be reacting to the change of the count.

So the idea if this account is larger than the 15 returning false or it'll be true, actually, that's

really true.

Otherwise, a return me later may be false.

OK?

They can also simplify it.

You can also have all of these.

You know that as a one line, there are just simply video return.

And this is larger than 15.

OK, and you can.

The name of this is exactly the same, but they are checking each one later.

So if this is larger than 15, they'll be turning.

The true value of this is smaller operator.

Be telling a false value, not able to get it yet to go up back to my template and I will be right here.

Very happy to hear an ADF.

Actually, the county badger DPH is is larger.

Then 15, OK.

The curly brackets.

Let's close a deal here, OK, and now we will see how how reactive it really is.

OK?

Properly, there'll be all this checking the count.

OK, you can see if India is larger than 15.

It's false because the count is then as there will be changing it 11, 12, 13, 14, 15 16.

It's change you throw.

OK, so that's the reactivity feature out of the box, and the compute properties is always checking

for its dependencies.

OK, so.

These complex properties, every time we execute that whenever you are changing the count and your return

again, your value are getting updated into the view, I can show it to you.

All right, your console look.

Re executing well, right, and you will see that every time.

I'll change the value refresh.

This copy of properties are executed and it will be returning the new value.

OK, so that's I think it was going to be for these lecture.

They can look at their computer properties, remember they are like a function, but they are really

properties that you don't need to call them, who does need to access the cockpit properly without breaking

any brackets to simply be connected to them as they count, for example.

But they are in the background, also executing depending if their dependencies are executing their

dependencies.

Are the data here exchanges and the count?

So that's going to be to let's continue in the next lecture, I see where you guys cheers.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.