Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,240 --> 00:00:05,950
Now that we started our project up and we've got it running let's start to replace some content on this
2
00:00:05,950 --> 00:00:09,600
default landing screen with the actual content or the actual each team.
3
00:00:09,600 --> 00:00:12,400
All that is required for our application.
4
00:00:12,400 --> 00:00:16,090
Now I'm going to use those terms very often throughout this course I'm going to be saying to you very
5
00:00:16,090 --> 00:00:19,970
often let's change some content that gets displayed to a user.
6
00:00:19,960 --> 00:00:25,300
Anytime I use those words it's almost always a sign that we need to open up a component template file
7
00:00:25,600 --> 00:00:28,420
and replace some of the H2 mail inside there.
8
00:00:28,420 --> 00:00:30,610
And that's exactly what we're going to do here.
9
00:00:30,640 --> 00:00:35,080
We're going to find the component template inside of our file that is responsible for showing all this
10
00:00:35,080 --> 00:00:36,540
starter content right here.
11
00:00:36,730 --> 00:00:40,470
And we're going to replace it with some HCM L to show our application.
12
00:00:40,480 --> 00:00:48,450
Instead the like an H1 a label a text input some checkboxes and so on let's open up our code editor
13
00:00:48,570 --> 00:00:52,680
and get started with that right away between the last video and this one.
14
00:00:52,720 --> 00:00:57,500
I took the liberty of starting up my code editor inside of my P.W. project directory.
15
00:00:57,610 --> 00:01:02,800
I encourage you to pause this video right now and you should open up your code editor as well.
16
00:01:03,590 --> 00:01:08,390
Once you've got your code editor open you're going to see a tremendous number of pre generated files
17
00:01:08,420 --> 00:01:10,160
and folders inside of here.
18
00:01:10,160 --> 00:01:14,090
As I mentioned before we're going to eventually understand what all these different files and folders
19
00:01:14,090 --> 00:01:14,540
do.
20
00:01:14,600 --> 00:01:19,760
But for right now let's just stay focused on making some changes to our app to get some content displayed
21
00:01:19,850 --> 00:01:27,290
that looks like this right here I'm going to find my SRS directory inside there I'll find a folder called
22
00:01:27,410 --> 00:01:34,400
app and then inside the app folder I'll find a file called app component each team L that is our component
23
00:01:34,400 --> 00:01:35,640
template file.
24
00:01:35,990 --> 00:01:41,650
If we open up that file right now we're going to see a tremendous amount of content inside of here.
25
00:01:41,640 --> 00:01:48,350
This is all of the CSX and all the HDL that is required to get this starter page visible on the screen
26
00:01:49,440 --> 00:01:53,940
if you read the comment at the very top it'll say that you should delete all this stuff and start to
27
00:01:53,940 --> 00:01:56,790
add some code for your particular project.
28
00:01:56,910 --> 00:01:58,690
So let's do that right now.
29
00:01:58,830 --> 00:02:03,430
We're gonna delete everything inside this file and then we're going to replace it with a lot of additional
30
00:02:03,450 --> 00:02:08,760
H T.M. to show the H1 label text input and so on.
31
00:02:08,940 --> 00:02:11,070
We're gonna do a pretty good amount of typing right now.
32
00:02:11,070 --> 00:02:16,570
This is all going to be very standard H HTML elements nothing really angular specific just yet.
33
00:02:16,650 --> 00:02:16,860
No.
34
00:02:16,890 --> 00:02:19,480
Let's do some typing to get started.
35
00:02:19,520 --> 00:02:27,610
I'm got first place in each one at the very top that says password generator after that.
36
00:02:27,630 --> 00:02:28,790
Also a label
37
00:02:31,760 --> 00:02:34,910
that says enter link and an input.
38
00:02:34,910 --> 00:02:36,500
Right after that.
39
00:02:36,500 --> 00:02:40,580
Now let's just save this file right away and make sure that we are in fact editing the correct file
40
00:02:40,660 --> 00:02:45,790
and make sure that we see this stuff appear inside of our application going to save this file.
41
00:02:45,800 --> 00:02:51,050
I'm going to flip back over to my browser line the tab that is that look lost forty two hundred and
42
00:02:51,050 --> 00:02:54,880
I'll see the H1 the label and the text input in there.
43
00:02:55,090 --> 00:02:55,360
Okay.
44
00:02:55,460 --> 00:02:58,380
So we're definitely editing the correct file.
45
00:02:58,460 --> 00:03:03,410
Now if you did not see your browser automatically refresh you can just manually refresh the page instead
46
00:03:05,130 --> 00:03:09,650
let's continue adding in some more marked markup or some markup to get all this different content inside
47
00:03:09,660 --> 00:03:10,170
there.
48
00:03:11,600 --> 00:03:16,040
So back over I'm going to find the label and the input that we just put together.
49
00:03:16,080 --> 00:03:18,220
And I'm also going to wrap it with a div.
50
00:03:18,330 --> 00:03:21,630
The reason that we're doing this is to just make sure that all these different form elements that we're
51
00:03:21,630 --> 00:03:24,470
displaying get placed on their own separate lines.
52
00:03:24,630 --> 00:03:29,550
If we don't use a div then all these text inputs and checkboxes and whatnot it will all show up on the
53
00:03:29,550 --> 00:03:32,260
same line okay.
54
00:03:32,260 --> 00:03:39,010
So after that we'll then place another div and inside there we'll place the first of our three different
55
00:03:39,010 --> 00:03:50,130
checkboxes I'll place a label it says use letters and then after that I'll put in input but that type
56
00:03:50,220 --> 00:03:57,450
of checkbox though again if a user checks this checkbox right here it means that they want to have some
57
00:03:57,450 --> 00:04:01,580
letters present in their randomly generated password.
58
00:04:01,620 --> 00:04:04,310
Now we want to show two other checkbox as well.
59
00:04:04,360 --> 00:04:07,580
They're both can have identical structures to what we see right here.
60
00:04:07,590 --> 00:04:12,420
Rather than typing all that stuff out from scratch I'm just going to copy this div and everything inside
61
00:04:12,420 --> 00:04:17,610
of it and then paste it underneath two times there's one and there's two
62
00:04:21,560 --> 00:04:27,330
but here's my first one I'll find the second one is just going to change the label on there to instead
63
00:04:27,330 --> 00:04:29,190
say use numbers.
64
00:04:29,460 --> 00:04:34,640
And then on the third one I'll change it to say use symbols OK.
65
00:04:34,740 --> 00:04:40,530
Let's say this file again let's go back over and make sure everything is now being displayed correctly.
66
00:04:40,540 --> 00:04:44,470
Yeah I'd say that's a good start now just a little bit more.
67
00:04:44,490 --> 00:04:46,020
We need to show a button.
68
00:04:46,020 --> 00:04:53,470
And then one more label and one more text input will go down to the bottom of this file I'll place a
69
00:04:53,470 --> 00:04:59,630
button that says generate and let's wrap that with the device.
70
00:04:59,630 --> 00:04:59,900
Well
71
00:05:03,780 --> 00:05:13,510
then finally at the very bottom we'll do one more div with the label that says your password.
72
00:05:13,640 --> 00:05:19,400
And one more input inside this one does not need a type of checkbox because it's going to be the text
73
00:05:19,400 --> 00:05:23,870
input that shows the user their password that was randomly generated okay.
74
00:05:23,900 --> 00:05:24,560
So that should be it.
75
00:05:25,160 --> 00:05:26,750
Let's save this file.
76
00:05:26,840 --> 00:05:31,200
We're going to flip back over and just make sure we've got the general structure put together.
77
00:05:31,580 --> 00:05:31,870
Yep.
78
00:05:31,910 --> 00:05:33,700
I'd say that looks pretty good.
79
00:05:33,830 --> 00:05:34,100
All right.
80
00:05:34,130 --> 00:05:37,400
So we just took care of all the markup that is required for our project.
81
00:05:37,400 --> 00:05:41,990
And again we put it into a component template file those component template files are always going to
82
00:05:41,990 --> 00:05:45,450
contain all the each e-mail for our application.
83
00:05:45,450 --> 00:05:50,900
It's now all you and I have to do is go back into that component template file and some other files
84
00:05:50,900 --> 00:05:55,760
as you'd probably guess we're going to add in a bunch of additional code to handle stuff like the length
85
00:05:55,910 --> 00:06:00,710
and these checkboxes and make sure that when we eventually click that generate button we actually generate
86
00:06:00,710 --> 00:06:03,110
a password and show it inside that input.
87
00:06:03,140 --> 00:06:07,030
So let's get started on all that interactivity stuff in just a moment.
9210
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.