Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,100 --> 00:00:03,350
Our card's application is now all complete.
2
00:00:03,350 --> 00:00:07,640
So in this video we're going to deploy our app and we're going to go over a couple of high level notes
3
00:00:08,000 --> 00:00:10,740
of important things we covered inside this project.
4
00:00:10,790 --> 00:00:13,660
Remember to deploy our application very easily.
5
00:00:13,670 --> 00:00:14,980
We'll go back over to our terminal.
6
00:00:15,020 --> 00:00:19,900
We will open up a second terminal window and then change back into our card's project directory.
7
00:00:20,150 --> 00:00:25,280
And then once we are inside there we can run the now command number that now is a command line tool
8
00:00:25,330 --> 00:00:29,400
that we installed on the last application when you first deploy or run.
9
00:00:29,400 --> 00:00:32,230
Now it's going to take a minute or two to deploy the thing.
10
00:00:32,300 --> 00:00:36,760
Me I deployed this application right before this video so you'll see that for me it finishes up in like
11
00:00:36,760 --> 00:00:37,910
three seconds.
12
00:00:37,930 --> 00:00:43,100
I had just deployed it and I haven't made any changes since then for you make sure you run that command.
13
00:00:43,200 --> 00:00:46,890
And while that thing is running let's talk about some of the really important things we covered inside
14
00:00:46,890 --> 00:00:48,610
this application.
15
00:00:48,740 --> 00:00:54,630
The first important thing we discussed was component creation remember any time that you feel like you're
16
00:00:54,630 --> 00:01:00,620
about to have to duplicate some HMO that is generally a sign that you might want to create a new component.
17
00:01:00,780 --> 00:01:05,580
Whenever we create a component we're going to use that energy generate Component Command at our command
18
00:01:05,580 --> 00:01:05,940
line.
19
00:01:05,940 --> 00:01:11,830
We're going to execute that inside of our project directory when we create a angular component.
20
00:01:11,830 --> 00:01:17,770
We generally try to reuse it as many times as possible in the same application all angular apps in general
21
00:01:17,770 --> 00:01:19,870
are made of different components.
22
00:01:19,870 --> 00:01:24,610
And finally last important thing that I really want you to be aware of is that Einstein we want to display
23
00:01:24,640 --> 00:01:26,040
a component on the screen.
24
00:01:26,050 --> 00:01:28,520
You have two nested inside of another.
25
00:01:28,540 --> 00:01:32,950
In our case when we first generated our project the app was already visible on the screen.
26
00:01:32,950 --> 00:01:39,180
So in order to show the card component we had to nest the card inside the app the next big thing we
27
00:01:39,180 --> 00:01:43,680
discussed was CSX scoping the remember inside of our project.
28
00:01:43,680 --> 00:01:46,060
We always get that Stiles dot CSX file.
29
00:01:46,140 --> 00:01:51,420
We put global styling inside there if we ever want to style elements that are created by one particular
30
00:01:51,450 --> 00:01:53,640
element or one particular component.
31
00:01:53,800 --> 00:01:58,440
And we're gonna place that styling inside of the accompanying component Nazi SS file.
32
00:01:58,660 --> 00:02:03,150
We really ran into that right away with our app component and the card component.
33
00:02:03,240 --> 00:02:06,110
Remember our application first looked like this right here.
34
00:02:06,180 --> 00:02:11,070
We had placed everything inside of the app component template file.
35
00:02:11,230 --> 00:02:15,940
We then extracted a lot of that each team fell into the card template file and as soon as we did so
36
00:02:16,300 --> 00:02:20,770
the SS we had written out inside of the app CSF file did not work anymore.
37
00:02:20,830 --> 00:02:26,770
And that's because the CSC CSX we place inside of here is not going to reach across and affect that
38
00:02:26,770 --> 00:02:27,570
other component.
39
00:02:27,580 --> 00:02:29,760
This right here does not happen.
40
00:02:29,780 --> 00:02:35,680
We had to move our CSX over to the card components the CSX file okay.
41
00:02:35,720 --> 00:02:39,760
So now the next big thing we discussed was input binding.
42
00:02:39,770 --> 00:02:44,260
This is where we communicate from a parent element to a child component.
43
00:02:44,270 --> 00:02:49,140
So when we make use of input binding we went through these five steps right here.
44
00:02:49,310 --> 00:02:53,060
Most important step to keep in mind and this is the one that you're probably going to miss as you start
45
00:02:53,060 --> 00:02:57,550
to work on your own applications is to make sure that you go through step number four.
46
00:02:57,560 --> 00:03:04,220
That is where you open up the child components class file and add in the input property decorator that
47
00:03:04,220 --> 00:03:07,470
was inside of our card component but the s file.
48
00:03:07,670 --> 00:03:12,170
This right here remember we refer to this as a decorator the special little bit syntax we're going to
49
00:03:12,170 --> 00:03:13,730
discuss in the next section.
50
00:03:13,730 --> 00:03:18,080
Yes we're finally there we're going to start to talk about typescript so when we make use of the input
51
00:03:18,080 --> 00:03:23,780
decorator that tells angular that this property is going to be set by the parent component it is showing
52
00:03:23,850 --> 00:03:31,150
the card component nonetheless a really big thing that we discussed after input binding was the energy
53
00:03:31,270 --> 00:03:37,070
or directive that we saw that inside of our app component template right here.
54
00:03:37,180 --> 00:03:42,220
Remember we have energy for that is another structural directive that is built into angular and we use
55
00:03:42,220 --> 00:03:48,970
it ain't how we want to iterate over some array of properties some object strings numbers whatever else
56
00:03:49,850 --> 00:03:55,240
we make use of energy for this element right here that energy is placed on is going to be duplicated
57
00:03:55,480 --> 00:04:00,910
once for every element inside of that post array you then get access to the post variable which we can
58
00:04:00,970 --> 00:04:06,370
refer to inside of the app Card element directly we can pull properties off their or do whatever else
59
00:04:06,400 --> 00:04:12,350
we want to do right now at this point if you go back over to your terminal hopefully you will see that
60
00:04:12,350 --> 00:04:18,940
your application is deployed you can take that link right there open it up inside your browser and that
61
00:04:18,940 --> 00:04:23,800
is our deployed application we can share that link with our friends and have them check out what we've
62
00:04:23,800 --> 00:04:25,800
built so far okay.
63
00:04:25,820 --> 00:04:29,960
Now we've got this put together quick pause and let's get started on our next application in the next
64
00:04:29,960 --> 00:04:30,350
video.
7265
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.