All language subtitles for 8. Modules Exercise Solution

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
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
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:01,410 --> 00:00:01,760 All right. 2 00:00:01,770 --> 00:00:04,770 Hopefully you had some success in going through this exercise. 3 00:00:04,800 --> 00:00:10,290 Let's go over a quick solution right now that no one is to create a new component inside the collection's 4 00:00:10,290 --> 00:00:11,220 module. 5 00:00:11,220 --> 00:00:15,680 We're going to create this component by using the energy command line tool. 6 00:00:15,720 --> 00:00:17,440 I'm gonna go over to my command line. 7 00:00:17,560 --> 00:00:22,520 I'm inside of a new terminal window inside of my project directory and set up here. 8 00:00:22,530 --> 00:00:28,320 I will run energy generate component and then I will write out the name of the module that I want to 9 00:00:28,320 --> 00:00:31,440 create this in which is collections. 10 00:00:31,440 --> 00:00:33,400 Then I'll write out the name of the component. 11 00:00:33,690 --> 00:00:41,690 We're going to call this thing elections home though collections. 12 00:00:41,880 --> 00:00:47,370 Like so I'll zoom out just you can see that entire command on one line once again it's all one that 13 00:00:48,150 --> 00:00:48,620 looks good. 14 00:00:49,510 --> 00:00:54,370 I'll now go back over to my editor and the next thing we're going to do is make sure that we export 15 00:00:54,580 --> 00:01:00,250 that component from the collections module back inside my editor. 16 00:01:00,250 --> 00:01:07,820 I'll find the collections directory inside there I'm going to find the collections module and then then 17 00:01:07,880 --> 00:01:11,650 at the very top I'm going to make sure that I have the import statement for the component. 18 00:01:11,660 --> 00:01:12,740 Yep I do. 19 00:01:13,000 --> 00:01:21,840 But then inside of the decorator I'll add on exports is in array and inside that array a list out collections. 20 00:01:21,950 --> 00:01:22,490 Component 21 00:01:25,490 --> 00:01:30,950 now at this point in time if we kind of consider what we've done in diagram format we're kind of like 22 00:01:30,950 --> 00:01:37,500 in this scenario right here we've got something inside the collections module of the elections components 23 00:01:37,890 --> 00:01:39,730 and we have now exported it. 24 00:01:39,780 --> 00:01:42,880 So it is available for use outside of our module. 25 00:01:42,880 --> 00:01:48,440 Now the last thing I have to do is make sure that we import this thing into our module over here that's 26 00:01:48,440 --> 00:01:49,300 step number three. 27 00:01:49,370 --> 00:01:55,830 We're going to make sure that we import the collections module into the at module we'll go and find 28 00:01:55,830 --> 00:01:57,820 my out module file. 29 00:01:57,860 --> 00:02:06,420 Here it is right here and inside of my apt module I will add in an import statement for the collections 30 00:02:06,510 --> 00:02:15,640 module from the collections folder and inside there I'll find a collections not module file 31 00:02:19,030 --> 00:02:25,300 and then finally I'm going to add the collections module to our list of imports at the very end of that 32 00:02:25,300 --> 00:02:25,840 list. 33 00:02:25,840 --> 00:02:28,720 I'll add on collections module like so 34 00:02:32,190 --> 00:02:32,790 right now. 35 00:02:32,790 --> 00:02:37,890 Step number four we're gonna make sure that we show that component that we've now imported inside of 36 00:02:37,890 --> 00:02:39,480 our app component. 37 00:02:39,480 --> 00:02:44,690 I'm going to find my app component template file years app component. 38 00:02:44,830 --> 00:02:52,600 HDL and then at the very top I will add an app elections on 39 00:02:56,160 --> 00:02:56,350 it. 40 00:02:56,450 --> 00:03:02,350 Let's say this look back over to our browser and make sure we can see that content on the screen now 41 00:03:02,370 --> 00:03:04,860 my scenario I've got a little error right here. 42 00:03:04,860 --> 00:03:06,370 Everything is working just fine. 43 00:03:06,380 --> 00:03:13,500 It's because my underwear is a little bit unhappy so going to restart my development server once my 44 00:03:13,500 --> 00:03:17,900 development server is back up. 45 00:03:18,130 --> 00:03:18,700 Here we go. 46 00:03:18,700 --> 00:03:23,460 And I've got elements home and collection some very good. 47 00:03:23,490 --> 00:03:23,820 All right. 48 00:03:23,850 --> 00:03:28,200 So now that we've got this put together quick pause right here and we'll continue in just a moment. 4688

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