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:07,330
In the last lecture, we have handled the remaining components exchange and the pagination in this lecture,
2
00:00:07,330 --> 00:00:13,110
will finally started working with a future related concepts like creative data and will display them.
3
00:00:14,400 --> 00:00:14,940
All right.
4
00:00:15,920 --> 00:00:23,180
Let's start in ah, enough power, let's go to components and not of the view, and let's say I would
5
00:00:23,180 --> 00:00:24,300
like to change here.
6
00:00:24,320 --> 00:00:28,090
You're up for actual application name, which should be extended.
7
00:00:28,090 --> 00:00:31,700
Ariel President And I find that it's located.
8
00:00:31,790 --> 00:00:32,450
You're up.
9
00:00:32,540 --> 00:00:33,790
It's very simple to find it.
10
00:00:33,860 --> 00:00:39,460
Just go to go to just search here and the file in an affidavit to search for your app.
11
00:00:39,470 --> 00:00:40,920
And it's straight away here.
12
00:00:40,940 --> 00:00:42,290
It's this element.
13
00:00:42,290 --> 00:00:44,000
It's holding your up string.
14
00:00:45,650 --> 00:00:46,790
So how can they change it?
15
00:00:46,790 --> 00:00:50,840
I know we can just say, simply write your extranjero next to you.
16
00:00:50,970 --> 00:00:52,070
Yeah, and that's going to be it.
17
00:00:53,120 --> 00:00:54,680
And here's extranjero, you know?
18
00:00:55,610 --> 00:01:01,670
But the first I would like to do instead is get this the value of extranjero string from the variable.
19
00:01:03,260 --> 00:01:06,890
For this, let's go down here and under the template.
20
00:01:06,890 --> 00:01:11,990
You will create your first script that the value of script calls it open.
21
00:01:11,990 --> 00:01:13,160
It actually created this.
22
00:01:13,340 --> 00:01:17,090
You can go over there and you will export default here, object.
23
00:01:17,240 --> 00:01:21,170
That's how you have your writing JavaScript export default object.
24
00:01:21,170 --> 00:01:26,780
And instead of this object to specify your functions or data, your computer that properties or getters
25
00:01:26,780 --> 00:01:30,050
and all of this stuff, you will learn about the later.
26
00:01:31,340 --> 00:01:33,500
OK, but what do I like to initialize?
27
00:01:33,500 --> 00:01:36,940
Here are data some initial data we can work with.
28
00:01:38,020 --> 00:01:43,750
In a few days, you initialize data with your right here specifying her data function.
29
00:01:44,230 --> 00:01:44,710
OK.
30
00:01:44,860 --> 00:01:51,850
Like this and the data function, be an object specified data, specify a return and specify an object.
31
00:01:51,850 --> 00:01:53,800
Your return neglect is so curly brackets.
32
00:01:54,670 --> 00:01:55,480
Here's your object.
33
00:01:56,020 --> 00:01:58,030
You'll specify your object properties.
34
00:01:58,030 --> 00:02:04,270
So, for example, if you would like to define the extent of your call it brand name, so just apply
35
00:02:04,280 --> 00:02:08,040
your brand name and this will hold the value of the exchange.
36
00:02:08,050 --> 00:02:11,110
Are you OK?
37
00:02:11,130 --> 00:02:12,210
Exchange, are you?
38
00:02:13,330 --> 00:02:18,790
I'll get a brand name, and now I would like to provide a variable value into my template.
39
00:02:20,340 --> 00:02:24,810
Need to do in this case, you need to use something called string interpolation, you would like to
40
00:02:24,810 --> 00:02:27,630
use the value from your variable in your template.
41
00:02:28,170 --> 00:02:32,160
You would like to interpolate it what you are going in this case.
42
00:02:32,670 --> 00:02:39,300
Remove the extension of your hardcoded value and to use the variable, you will use a double curly brackets
43
00:02:39,570 --> 00:02:47,520
and anything you will get in the curly brackets will be will be transformed into the value of the variable
44
00:02:47,520 --> 00:02:48,780
you are putting in it.
45
00:02:49,440 --> 00:02:50,580
In this case, the brand name.
46
00:02:52,220 --> 00:02:58,010
OK, so in my template, I can you can access my data, whatever I am returning from a data spread name
47
00:02:58,010 --> 00:03:03,710
I can access here and in the double double curly brackets, I can interpolate the value.
48
00:03:05,210 --> 00:03:05,870
Let's save it.
49
00:03:06,050 --> 00:03:08,150
Go back with refreshing to see seeds working.
50
00:03:08,540 --> 00:03:12,260
So now the only place I need to change this is down here the data.
51
00:03:12,260 --> 00:03:16,730
So if I build this size change the brand name Extranjero Pro.
52
00:03:18,670 --> 00:03:20,720
Savvy, you can see Angelia Pros here.
53
00:03:21,900 --> 00:03:24,240
OK, so that's how this is, how this works.
54
00:03:25,950 --> 00:03:30,990
OK, let's see you something more complicated, what about navigation of navigation at her home, about
55
00:03:30,990 --> 00:03:32,250
a fake, hulking register?
56
00:03:32,250 --> 00:03:39,660
This could be also the part of a data they could be they could be iterated and and displayed displayed
57
00:03:39,660 --> 00:03:41,070
dynamically on our screens.
58
00:03:42,480 --> 00:03:48,220
So what we can do in such a case, go to data and let's value our menu items.
59
00:03:48,540 --> 00:03:55,480
Menu items and menu items will be all of the links we have in that navigation bar home about if a queue
60
00:03:55,530 --> 00:04:03,810
log in and register, so specify, etc. All of this, all these links, all of these items.
61
00:04:05,120 --> 00:04:13,220
And each item will have text which will be displayed, the text in this case will be the name of the
62
00:04:13,220 --> 00:04:14,450
item itself.
63
00:04:15,230 --> 00:04:18,530
So in the case of a first item, it can be, for example, a home.
64
00:04:20,340 --> 00:04:25,770
And a link that will be pointing to there'll be a link, but the link will be not handling yet legacy
65
00:04:25,770 --> 00:04:26,350
as it is.
66
00:04:26,430 --> 00:04:27,360
Let's use it like this.
67
00:04:28,660 --> 00:04:30,120
OK, we have a how many items we have.
68
00:04:30,120 --> 00:04:31,300
We have five items, right?
69
00:04:31,350 --> 00:04:32,690
One, two, three, four or five.
70
00:04:32,700 --> 00:04:32,970
So.
71
00:04:33,450 --> 00:04:37,380
Menu item home menu item about menu item.
72
00:04:37,380 --> 00:04:40,220
A fake new menu item.
73
00:04:40,230 --> 00:04:42,180
Log in a menu item register.
74
00:04:44,140 --> 00:04:44,950
Let's start simple.
75
00:04:45,070 --> 00:04:48,820
Let's start to just be the displaying menu item somewhere in our template.
76
00:04:48,820 --> 00:04:54,280
Let's start, let's say, under the head that I would like to display this this menu item.
77
00:04:54,280 --> 00:04:56,830
So I'll do the same thing as with our brand name.
78
00:04:57,400 --> 00:04:59,860
Under the head, there are broccoli brackets.
79
00:04:59,860 --> 00:05:02,530
Elevate their menu items, let's say it.
80
00:05:03,860 --> 00:05:07,370
Let's go back to your coat, and here it is.
81
00:05:07,940 --> 00:05:10,040
Here are your menu items.
82
00:05:11,030 --> 00:05:16,190
OK, so you can see here text home, text about a secure text, log in and text the register.
83
00:05:16,190 --> 00:05:16,940
They are all here.
84
00:05:17,550 --> 00:05:20,900
Maybe you are wondering why they are above by there and there.
85
00:05:20,900 --> 00:05:24,410
That's the way how actually has specifically specified styling.
86
00:05:24,410 --> 00:05:30,070
So I guess if you want to provide A. Just get it provided under the enough bar.
87
00:05:30,080 --> 00:05:34,580
Maybe now going out there somewhere invisibly hidden.
88
00:05:35,030 --> 00:05:37,790
Yeah, you can see they are transparent, but they are definitely here.
89
00:05:37,810 --> 00:05:38,900
But I will when I'm.
90
00:05:41,030 --> 00:05:46,310
Got it wasn't the best idea to display them under this them as they are before, OK?
91
00:05:46,670 --> 00:05:49,670
It doesn't matter that they are displayed wrongly above.
92
00:05:50,060 --> 00:05:50,990
They don't want to use them.
93
00:05:50,990 --> 00:05:53,750
I just want to show you that we can get this data on the screen.
94
00:05:54,380 --> 00:06:02,930
You can see we have five items and each of this item holding a text properly with the particular text,
95
00:06:02,930 --> 00:06:04,880
which is the name of the menu item.
96
00:06:06,020 --> 00:06:08,610
OK, I guess that should be enough for this lecture.
97
00:06:08,690 --> 00:06:12,410
Now, you know how to specify data and how to use them in your template.
98
00:06:12,960 --> 00:06:15,830
But I would like to show you in the next lecture is how you can get.
99
00:06:15,950 --> 00:06:21,820
How can you iterate through this data so how you can create sample for loop, etc. data and the enter
100
00:06:21,830 --> 00:06:23,630
dynamic content of your link?
101
00:06:24,290 --> 00:06:26,120
So I don't need to specify everything manually.
102
00:06:28,200 --> 00:06:32,250
OK, so let's finish it up here, and I will say the next lecture.
103
00:06:32,310 --> 00:06:32,760
Cheers.
9572
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.