All language subtitles for 5. Ref to component

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
fr French Download
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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,090 --> 00:00:05,280 In the last lecture, you have learned how to parse elements into your custom components. 2 00:00:05,520 --> 00:00:12,900 We have done this with the template and and the slots in this lecture will continue with the model for 3 00:00:12,900 --> 00:00:17,070 a one hour lecture and then I promise we'll get into the opportunity concept. 4 00:00:18,270 --> 00:00:24,000 Well, I would like to show you in this one is how you can get access to your model component to your 5 00:00:24,050 --> 00:00:30,090 is a billion dollar component in your profile model without passing here any callback functions and 6 00:00:30,180 --> 00:00:30,840 any props. 7 00:00:32,460 --> 00:00:37,260 OK, first, let's go to your model, the view, and we'll do an improvement in our model that you can 8 00:00:37,260 --> 00:00:44,640 see here by clicking here or we are doing any changes with our eyes open, we are always manually getting 9 00:00:44,640 --> 00:00:47,460 our variable is open and we are selling their value true or false. 10 00:00:47,490 --> 00:00:48,480 Let's do it differently. 11 00:00:49,860 --> 00:00:53,250 Let's get your methods, and we'll call these methods open and close. 12 00:00:53,880 --> 00:00:59,940 OK, so in a methods after something models by are common, let's create a function of call open. 13 00:01:02,050 --> 00:01:06,160 All right, and we'll create your function of close function, this function will be simply setting 14 00:01:06,160 --> 00:01:07,060 that is open. 15 00:01:07,070 --> 00:01:10,380 This is open to true in the case of open and the closed will be. 16 00:01:10,420 --> 00:01:11,900 This is open. 17 00:01:13,240 --> 00:01:18,160 Be false simply as that now to on SEC says we just simply need to pause. 18 00:01:18,160 --> 00:01:21,820 Here are close functions that can just puzzle this close. 19 00:01:22,900 --> 00:01:25,800 Some of them a lot will be submitted on the successful vehicles model. 20 00:01:25,840 --> 00:01:31,050 It's much easier to read and then also in our templates, we can change it. 21 00:01:31,150 --> 00:01:34,190 So here on a click is a false and it'll be close. 22 00:01:34,340 --> 00:01:35,000 So just call here. 23 00:01:35,000 --> 00:01:38,210 Close here is open. 24 00:01:38,210 --> 00:01:39,590 Is false the same thing? 25 00:01:39,590 --> 00:01:40,850 Let's call your close. 26 00:01:42,310 --> 00:01:43,570 It's open, this will stay. 27 00:01:44,650 --> 00:01:50,530 This click is open, it's true this will be open and here will be open through this, they'll be open 28 00:01:50,530 --> 00:01:51,010 as well. 29 00:01:51,560 --> 00:01:56,530 I click the button here is that instead of manually assigning the value to the variable. 30 00:01:57,680 --> 00:01:58,070 OK. 31 00:01:59,020 --> 00:02:02,270 Now we have these functions, we can try it out if we can still close and open a model. 32 00:02:02,320 --> 00:02:06,490 We should be able to as everything as works as before we can update our data. 33 00:02:06,520 --> 00:02:09,370 No big deal about closing the models after it's updated. 34 00:02:10,740 --> 00:02:11,680 OK, yes. 35 00:02:11,990 --> 00:02:13,090 This is this works. 36 00:02:13,090 --> 00:02:14,350 And now. 37 00:02:16,030 --> 00:02:18,130 I would like to show you how you can achieve this. 38 00:02:19,350 --> 00:02:21,390 And your profile mother, for example, they can use it. 39 00:02:21,700 --> 00:02:26,640 Harvey can call here to close model deeds, passing here any callbacks. 40 00:02:28,190 --> 00:02:34,160 You can do it like it is, scroll up into the air template, there is your exchange model and it will 41 00:02:34,240 --> 00:02:37,580 right on an exchange model special attribute called Ref. 42 00:02:38,980 --> 00:02:39,400 OK. 43 00:02:40,030 --> 00:02:40,540 Like this? 44 00:02:42,020 --> 00:02:45,450 To directly specify your custom name, whatever you want to call it. 45 00:02:45,470 --> 00:02:48,350 I can call it exchange model, for example. 46 00:02:48,920 --> 00:02:49,270 OK. 47 00:02:49,430 --> 00:02:52,850 This will be a reference to this exchange model component. 48 00:02:54,770 --> 00:02:59,120 Now in our corporate properties, we don't have you here, and he looks great here while uncompleted 49 00:02:59,120 --> 00:03:01,040 property actually under the data. 50 00:03:03,000 --> 00:03:03,540 Properties. 51 00:03:05,250 --> 00:03:10,660 You will get access to this model, bill that here we will call these companies property, let's say 52 00:03:10,660 --> 00:03:19,990 just a simple model we can call it and return from this these dollars sign that arrives and the exchange 53 00:03:21,460 --> 00:03:22,320 exchange model. 54 00:03:24,910 --> 00:03:28,930 So these are the arrives here is available in every component. 55 00:03:29,110 --> 00:03:34,540 And on this, you will have the moral component there, actually any component, if you will, define 56 00:03:34,540 --> 00:03:40,030 the reference of this component in this case or not, a custom exchange component, we are creating 57 00:03:40,030 --> 00:03:42,850 the reference of the Bureau think reference of the extras model. 58 00:03:42,860 --> 00:03:46,750 That's how they are calling this and therefore on this their object. 59 00:03:46,750 --> 00:03:48,670 They can access the exchange model. 60 00:03:49,940 --> 00:03:54,370 And this gets me access to the exchange model data and the methods. 61 00:03:55,850 --> 00:03:56,310 OK. 62 00:03:56,760 --> 00:04:02,410 I'm calling it Modelo internally, so they compute that, so here in on sex, I'd like to pass anything 63 00:04:02,420 --> 00:04:02,880 now. 64 00:04:02,900 --> 00:04:05,000 Of course I still can, but I can remove this. 65 00:04:05,920 --> 00:04:06,380 All right. 66 00:04:06,380 --> 00:04:09,950 And on the sex is now I can call this model. 67 00:04:11,330 --> 00:04:11,960 To the close. 68 00:04:14,300 --> 00:04:14,730 OK. 69 00:04:14,780 --> 00:04:15,380 And that's it. 70 00:04:15,590 --> 00:04:22,940 I can call here simply this model close, because this model here returned to the reference is the model 71 00:04:22,940 --> 00:04:26,000 here and I can access the methods of the model. 72 00:04:27,310 --> 00:04:32,710 OK, I can access open a close and all of this here, so now we're able to go back to my browser, which 73 00:04:32,710 --> 00:04:37,240 is very fresh in a case that everything is, it's OK clicking a custom button. 74 00:04:37,260 --> 00:04:37,990 Change your name. 75 00:04:40,290 --> 00:04:47,100 Save changes and you will see you're able to close this, and the model has been updated. 76 00:04:47,970 --> 00:04:48,420 All right. 77 00:04:48,420 --> 00:04:52,110 So custom button, I wonder I'll try one more time. 78 00:04:52,180 --> 00:04:52,770 We'll see. 79 00:04:54,710 --> 00:04:55,490 All right. 80 00:04:55,850 --> 00:05:00,650 Their name safe changes, and now it's what, all closing immediately. 81 00:05:00,710 --> 00:05:05,750 I think we are not waiting after the prophase update, and we are calling this simply to close the function 82 00:05:05,840 --> 00:05:06,800 to close the five sites. 83 00:05:06,800 --> 00:05:07,760 Let's take a look at this. 84 00:05:10,360 --> 00:05:10,800 All right. 85 00:05:10,960 --> 00:05:12,220 On a success. 86 00:05:13,590 --> 00:05:15,480 We are passing the close. 87 00:05:17,450 --> 00:05:19,460 Oh, OK, so we've done it the puzzle. 88 00:05:20,130 --> 00:05:25,020 We beginning to pass it still, OK, but the issue will be in a profound model, I guess on a sex. 89 00:05:25,730 --> 00:05:30,050 Oh yeah, here is a issue which is the only reference to the fact we should be calling it. 90 00:05:30,620 --> 00:05:35,020 If you want something they can quite like, this puzzle function better will call this model close. 91 00:05:35,030 --> 00:05:36,920 OK, so that's doubles their issue line here. 92 00:05:37,670 --> 00:05:38,350 Does that behavior. 93 00:05:38,350 --> 00:05:43,310 We have been calling it immediately and to not ban the profile has been updated, so puzzle is calling 94 00:05:43,370 --> 00:05:44,900 this a proper function. 95 00:05:44,930 --> 00:05:47,000 Then instead of, these will call a close. 96 00:05:47,450 --> 00:05:49,690 And here the all of you, everything should be fine here. 97 00:05:52,540 --> 00:05:57,850 OK, so back here now, we can just click here to change the name. 98 00:05:58,900 --> 00:06:01,900 Although rates have changes and issues of work now, now it's fine. 99 00:06:03,700 --> 00:06:08,800 All right, so everything is works now you can you have learned how to also get access to your components 100 00:06:08,800 --> 00:06:13,210 through there a reference, and now we can fairly continue with that opportunity feature. 101 00:06:13,210 --> 00:06:16,690 Finally and eventually my internet slogan not even loaded. 102 00:06:16,690 --> 00:06:18,210 So let's go to the next lecture, guys. 103 00:06:18,250 --> 00:06:18,670 Cheers. 9420

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