Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,150 --> 00:00:03,940
In the last lecture, we have integrated log in and register a template.
2
00:00:04,170 --> 00:00:10,350
So from a perspective of the age HTML, everything is ready, the forms are ready and we can try to
3
00:00:10,350 --> 00:00:11,580
fill them up with the data.
4
00:00:12,120 --> 00:00:14,460
OK, back to our code.
5
00:00:14,460 --> 00:00:18,100
They will start with the log in to the video because it has a few of our inputs.
6
00:00:18,430 --> 00:00:25,770
Just go and we'll try to get a data from these inputs for us or prepare the data in my script.
7
00:00:25,950 --> 00:00:28,290
OK, so you'll find here a script.
8
00:00:28,480 --> 00:00:29,970
OK and script.
9
00:00:29,970 --> 00:00:31,590
You will export default, right?
10
00:00:31,590 --> 00:00:32,610
So that's a finger in it.
11
00:00:32,620 --> 00:00:37,680
Auto export default object preference in the export default.
12
00:00:38,310 --> 00:00:42,090
We'll provide a data, as you know, later function as a data function.
13
00:00:42,510 --> 00:00:44,310
Nothing new here will return here.
14
00:00:44,340 --> 00:00:47,460
Object represents our form data.
15
00:00:48,380 --> 00:00:50,400
I don't call my form data forum.
16
00:00:50,570 --> 00:00:56,540
Will be my property of the form of the object, and the forum will have it to other properties and it
17
00:00:56,540 --> 00:00:58,520
will be email and the password.
18
00:00:59,360 --> 00:01:05,660
Cellebrite your email will initialize it to the empty string and then will initialize your passport,
19
00:01:06,080 --> 00:01:08,300
password, empty string as well.
20
00:01:08,750 --> 00:01:09,200
Perfect.
21
00:01:10,470 --> 00:01:18,870
OK, so in the data neighborhood of that structure, I had this forum, dot, email, email and this
22
00:01:18,870 --> 00:01:21,210
forum dot password, that's what we have.
23
00:01:21,510 --> 00:01:25,410
Perfect, but we can use on the inputs.
24
00:01:25,410 --> 00:01:31,300
It's directive called the model and the model is to be data binding.
25
00:01:31,320 --> 00:01:37,090
What I mean by the two way data on the other show you go first to input of the email and let's back
26
00:01:37,110 --> 00:01:43,400
here a simplified model, OK model and to be model, provide your data.
27
00:01:43,410 --> 00:01:45,820
So for them, you're done to get out of this.
28
00:01:45,860 --> 00:01:52,710
Remember, we are in a template such as a form dot email and a go to your input here.
29
00:01:53,550 --> 00:01:56,850
And let's right here is a username.
30
00:01:57,450 --> 00:01:58,680
Wait a second, the register.
31
00:01:58,680 --> 00:01:59,640
I want to start with the log in.
32
00:01:59,820 --> 00:02:04,740
All right, so the wrong forum now you say, guys, let's sorry you, they'll be the back.
33
00:02:04,740 --> 00:02:05,340
Go back.
34
00:02:05,830 --> 00:02:05,950
Yeah.
35
00:02:05,970 --> 00:02:09,150
Well, this value v model, just leave it as we had already started the deal.
36
00:02:10,290 --> 00:02:14,310
Of course, you can leave this expert default object copy on the data and remove them from here.
37
00:02:15,360 --> 00:02:16,650
I am in the wrong file.
38
00:02:17,310 --> 00:02:23,700
You go to log in to view and here you are the expert default to just copy your data here and scale up
39
00:02:24,450 --> 00:02:26,490
the input the model.
40
00:02:27,240 --> 00:02:27,780
All right.
41
00:02:27,780 --> 00:02:29,520
In the form dot email.
42
00:02:30,690 --> 00:02:32,430
Great copy.
43
00:02:32,580 --> 00:02:38,070
Go to your other input, which is a password, and here will be Forum Dot password.
44
00:02:40,270 --> 00:02:40,630
OK.
45
00:02:40,840 --> 00:02:48,100
Let's save it, and as I mentioned, two way data banding means whenever I would change my data, for
46
00:02:48,100 --> 00:02:54,040
example, here from my code, I will say here email will be taxed at the Gmail.
47
00:02:54,730 --> 00:02:55,030
Com.
48
00:02:56,450 --> 00:03:02,240
This data will be changed in your input, in your model and the same, but I will change my.
49
00:03:03,420 --> 00:03:05,850
The model, no input is writing here.
50
00:03:06,160 --> 00:03:08,010
I'm changing the data itself here.
51
00:03:08,550 --> 00:03:08,940
OK.
52
00:03:09,330 --> 00:03:11,910
So you might have changes to the Filipino.
53
00:03:13,370 --> 00:03:18,680
The data here from email will be not able to come, but they will access it from the court, but it
54
00:03:18,680 --> 00:03:21,260
will be actual the value of the handwriting here it will be Philip.
55
00:03:21,710 --> 00:03:23,960
So that's why Dubai data binding.
56
00:03:25,430 --> 00:03:25,760
OK.
57
00:03:25,820 --> 00:03:30,020
Very simple, I want to leave it as an empty string and you'll hear about method.
58
00:03:31,230 --> 00:03:36,960
So methods, you are writing in the methods or under the data, let's create your methods in a method
59
00:03:37,000 --> 00:03:38,880
to create log in method.
60
00:03:39,420 --> 00:03:42,420
OK, so methods with rather log in.
61
00:03:43,140 --> 00:03:50,280
And for now, I just would like to alert out our forum data, so simplify their alert since we are working
62
00:03:50,280 --> 00:03:51,210
with that object.
63
00:03:51,540 --> 00:03:56,790
And if we would alert at this forum, let's see what will happen.
64
00:03:56,790 --> 00:04:00,780
It will display object object in your look, so they will gather some data.
65
00:04:00,810 --> 00:04:02,520
I will say I will sign in.
66
00:04:02,580 --> 00:04:06,630
Actually, we need to have a need to call a log in first.
67
00:04:06,960 --> 00:04:09,910
I forgot about it, so it was logging an effort.
68
00:04:09,990 --> 00:04:11,970
Please copy it and find some button.
69
00:04:12,780 --> 00:04:15,690
For example, this button here and value.
70
00:04:15,750 --> 00:04:22,590
Click So at Sign Click Event Handler and you would like to execute logging having a boulevard golf course.
71
00:04:25,350 --> 00:04:29,280
Go back to your quote right here, anything that's better electric you're signing and you can see you
72
00:04:29,280 --> 00:04:32,970
will see her object object, that's what I was talking about because the form is object and you will
73
00:04:32,970 --> 00:04:36,570
alert object to all display object, object to transfer object.
74
00:04:36,570 --> 00:04:38,460
Interesting interpretation.
75
00:04:38,470 --> 00:04:41,220
You will use function adjacent to string if I.
76
00:04:42,810 --> 00:04:49,830
So here in Charlotte, you're right, Jason Dorday string fight and will provide your forum data, and
77
00:04:49,830 --> 00:04:50,250
that's it.
78
00:04:51,540 --> 00:04:53,730
OK, so go back to browser right here.
79
00:04:53,730 --> 00:04:58,170
Any email test at Gmail dot com password 1-2-3 for signing.
80
00:04:58,500 --> 00:04:59,490
And here we have it.
81
00:05:00,460 --> 00:05:00,940
OK.
82
00:05:00,970 --> 00:05:05,580
Just to show you, Jason, stitching you for a very simple function, you can call it from the console
83
00:05:05,590 --> 00:05:07,840
here, you have a globally available Jason, you see.
84
00:05:08,410 --> 00:05:10,480
You know, Jason, you have a function stitching you fi.
85
00:05:10,900 --> 00:05:17,140
And if I have an object, let's say crossed a person object name.
86
00:05:18,920 --> 00:05:25,070
Philip, that will create a person in object representation, but if I will call here, Jason.
87
00:05:25,560 --> 00:05:29,900
Uh, Jason, string you five person.
88
00:05:30,260 --> 00:05:32,900
Oops, there.
89
00:05:32,900 --> 00:05:34,490
So you will see the string.
90
00:05:35,290 --> 00:05:38,750
Okay, that's that's we can we can console look now or we can alert out.
91
00:05:40,020 --> 00:05:40,440
OK.
92
00:05:40,470 --> 00:05:41,610
Very, very simple.
93
00:05:41,790 --> 00:05:45,400
So we have our form with email and password.
94
00:05:45,450 --> 00:05:50,490
We have a logging method to which all this information and let's continue in the next lecture.
95
00:05:50,490 --> 00:05:51,450
Guys see what they're.
8493
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.