Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,210 --> 00:00:05,070
Hi there, welcome back in the your lecture in the previous one, we have talked about the pitcher's
2
00:00:05,070 --> 00:00:09,000
ability, we have multiple pages and they can navigate between them.
3
00:00:09,750 --> 00:00:15,870
One problem is that we cannot see the number in other pages, so let's take a look at this and let's
4
00:00:15,870 --> 00:00:16,260
fix it.
5
00:00:17,330 --> 00:00:22,700
Although, you know, coding editorial space open a number of view, and I will show you a lot of value
6
00:00:22,700 --> 00:00:25,340
you can access globally in all of your components.
7
00:00:26,260 --> 00:00:32,320
Thanks to the rowdier we are using that installing here after the use, they're out there, they could
8
00:00:32,320 --> 00:00:35,200
access one value globally in all of our components.
9
00:00:35,500 --> 00:00:39,400
So I will show ID like, let's say, under the federal display.
10
00:00:39,400 --> 00:00:42,280
I will display here the curly brackets and I will access here.
11
00:00:42,820 --> 00:00:45,940
Dollar sign out, not above.
12
00:00:46,810 --> 00:00:54,070
Usually, when you are installing the plug ins, they are injecting global values into your context
13
00:00:54,070 --> 00:00:55,690
who can access them in all of your pages.
14
00:00:55,690 --> 00:00:58,540
And usually these variables are prefixed with a dollar sign.
15
00:00:58,960 --> 00:01:01,060
So and you can find all of this in the comment section.
16
00:01:01,330 --> 00:01:04,030
So in this case, they're out there, they're something here.
17
00:01:04,030 --> 00:01:09,670
We are using Apple to use its injecting, too out of context dollars, nine dollars and they're out
18
00:01:09,880 --> 00:01:10,330
on their out.
19
00:01:10,330 --> 00:01:16,450
We can access the current path we are navigating to, OK, you're asking where you can find his information,
20
00:01:16,720 --> 00:01:19,600
you can find his information interview at our documentation.
21
00:01:19,600 --> 00:01:20,980
It's very, very well documented.
22
00:01:20,980 --> 00:01:26,920
And it's also noted there that you have access globally in your Typekit, in your templates to the dollar.
23
00:01:26,920 --> 00:01:28,330
Sign around with the above.
24
00:01:28,540 --> 00:01:30,040
Also in your script, you can access it.
25
00:01:30,700 --> 00:01:35,050
Going to be able to show it to you later are going to be able to be progressing without without JavaScript
26
00:01:35,050 --> 00:01:35,350
called.
27
00:01:36,340 --> 00:01:39,640
So if you have access to the address and they're out above, let's take a look how it looks.
28
00:01:40,910 --> 00:01:44,500
Refresh and you can see in the left top corner is empty.
29
00:01:44,950 --> 00:01:45,970
That's out of home or out.
30
00:01:46,360 --> 00:01:46,840
It's empty.
31
00:01:47,260 --> 00:01:56,210
When people go to about, you'll see these is about being able to go to navigate through here to if
32
00:01:56,230 --> 00:02:02,500
a queue here is if they queue so I can get the current drought register that are.
33
00:02:03,820 --> 00:02:09,100
And logging in a survey to logging that is a logging, so I can access that out on every, every page.
34
00:02:10,690 --> 00:02:13,690
So maybe you're asking now what you can do with this information.
35
00:02:14,380 --> 00:02:20,830
What we can do here, we can simply write if statement and we can check if we are on some other out
36
00:02:20,830 --> 00:02:26,040
than the home page then and then providing a different class or a different styling elements.
37
00:02:27,250 --> 00:02:30,610
So instead of displaying it here, but it's not nice what's removed from here?
38
00:02:31,570 --> 00:02:33,400
And that was rather conditional.
39
00:02:33,890 --> 00:02:36,990
al-Abadi conditional here on the number here.
40
00:02:37,960 --> 00:02:38,290
OK.
41
00:02:38,590 --> 00:02:39,000
All right.
42
00:02:39,060 --> 00:02:44,170
A conditional statement and I will add here additional A-Class, depending on the path.
43
00:02:45,280 --> 00:02:47,530
Let's provide it on a new line, so it's easier to read.
44
00:02:48,460 --> 00:02:54,160
And after the class, I will write the binder so I don't need to write a V binders, a column and I
45
00:02:54,160 --> 00:02:56,020
will get your class.
46
00:02:57,710 --> 00:03:04,040
OK, so this way I can provide here values from the variables, and I can I can conditionally check
47
00:03:04,040 --> 00:03:05,360
here for the values.
48
00:03:06,710 --> 00:03:08,810
So what I can do here, I can check it out here.
49
00:03:09,190 --> 00:03:10,070
Let's assign here.
50
00:03:10,450 --> 00:03:14,240
This was Roger Dollar sign around the power of.
51
00:03:15,140 --> 00:03:17,750
Is equal to the empty slush.
52
00:03:19,070 --> 00:03:22,550
OK, elevator territory operation, OK, so what's your question mark?
53
00:03:22,580 --> 00:03:27,980
If the path is an empty slash, as you could see, provided me here is an empty glass, empty string.
54
00:03:27,980 --> 00:03:29,060
Nothing there, really.
55
00:03:29,630 --> 00:03:31,220
Otherwise what's provided me here?
56
00:03:31,220 --> 00:03:33,620
Class leaf dash.
57
00:03:33,890 --> 00:03:36,350
Background back drowned.
58
00:03:37,780 --> 00:03:39,550
So is the ternary operation.
59
00:03:40,060 --> 00:03:44,860
Here we are checking if the route path is equal to the empty slash, as you could see on the homepage,
60
00:03:44,860 --> 00:03:45,370
it is.
61
00:03:46,060 --> 00:03:49,570
This means on the homepage and is the statement is true.
62
00:03:49,990 --> 00:03:51,760
We are going with a first expression here.
63
00:03:52,480 --> 00:03:56,280
OK, so we are asking question is about about equal to the empty on the homepage?
64
00:03:56,290 --> 00:03:56,480
Yes.
65
00:03:56,500 --> 00:03:57,970
So this will be the empty.
66
00:03:59,180 --> 00:04:04,250
On other other pages, the roadmap is different, as you could see this register register, such logging
67
00:04:04,250 --> 00:04:06,920
in effect was less about, so it's false.
68
00:04:07,220 --> 00:04:11,420
This way we are going with a second expression and if it fits the background, it'll be merged into
69
00:04:11,420 --> 00:04:11,960
the class.
70
00:04:12,860 --> 00:04:20,000
OK, so if you have a two attributes one, the static one basically and one dynamic one v bind, these
71
00:04:20,000 --> 00:04:23,240
two classes will be merged together into the one class, as you will see.
72
00:04:25,600 --> 00:04:29,470
OK, so, Diesel, let's say let's go back to Brussels there, let's inspect this page to right click
73
00:04:29,470 --> 00:04:30,160
Inspect.
74
00:04:31,680 --> 00:04:34,230
That's inspectors element and here and like, select this.
75
00:04:36,020 --> 00:04:41,330
Although enough, but you can see the nail biter here is a Vif background, and this will be the background
76
00:04:41,330 --> 00:04:45,470
for all of my pages, a part of my home page and I will go to the home page.
77
00:04:45,830 --> 00:04:48,320
The Vif background is on here.
78
00:04:49,130 --> 00:04:49,520
OK?
79
00:04:49,580 --> 00:04:50,930
You can see there is nothing.
80
00:04:51,260 --> 00:04:55,280
Only then able to go to my, let's say, such log in or some other pages.
81
00:04:55,580 --> 00:04:59,630
Only there there is a brief background so that we can do some things here.
82
00:05:00,840 --> 00:05:02,730
You can see in a zero.
83
00:05:03,150 --> 00:05:09,630
The novel about a class is a transparent background, the transparent, but now I can override it,
84
00:05:09,630 --> 00:05:13,680
they can write their background, background, let's say blue.
85
00:05:14,970 --> 00:05:17,250
OK, and I will be able to see my items.
86
00:05:19,270 --> 00:05:24,130
OK, that's all they need to do, I'm going to go to our case files, I'm going to just toggle the background
87
00:05:24,140 --> 00:05:25,700
class and we need to assign their color.
88
00:05:26,360 --> 00:05:26,840
Let's do it.
89
00:05:29,150 --> 00:05:33,020
OK, we will have a closed modules and first looked at a variable.
90
00:05:34,090 --> 00:05:36,010
It'll go to assets folder will go to styles.
91
00:05:36,280 --> 00:05:42,730
They'll go to variables as he assists, that'll create a variable for a caller for background color.
92
00:05:43,810 --> 00:05:46,610
Well, Roger, let's ride hear a dollar sign.
93
00:05:46,630 --> 00:05:51,820
That's how you of writing variables in SC assess in a dark, dark blue national.
94
00:05:51,820 --> 00:05:54,010
Every the name of the variable and the value will be.
95
00:05:54,490 --> 00:05:58,750
They'll be hash four or four seven six five.
96
00:05:59,320 --> 00:06:02,580
So we'll be this darkish call.
97
00:06:02,590 --> 00:06:03,520
Or is it even blue?
98
00:06:03,550 --> 00:06:04,480
Yeah, it's kind of blue.
99
00:06:04,990 --> 00:06:05,410
OK.
100
00:06:06,820 --> 00:06:11,950
So we have dark blue color, and now we can we can go to Maine access.
101
00:06:12,940 --> 00:06:18,670
You will scroll around on line seventy three or so, let's go to 73 Lane.
102
00:06:18,850 --> 00:06:22,240
There should be Heather Starling's you can see here and here is enough.
103
00:06:22,240 --> 00:06:26,440
But our styling, so you can see the background is here, said that it's transparent.
104
00:06:27,700 --> 00:06:35,200
OK, I will say here now and operator and background the background.
105
00:06:35,200 --> 00:06:35,740
Like this?
106
00:06:37,600 --> 00:06:40,940
OK, background will be our color.
107
00:06:40,960 --> 00:06:46,420
We have created so this will be the dollar sign and there are dark blue colours that are some dark blue
108
00:06:46,420 --> 00:06:46,780
color.
109
00:06:48,620 --> 00:06:53,970
OK, soon enough, Bobby Harvey will have a big grin transparent, but then there will be a big glass
110
00:06:54,000 --> 00:06:55,340
class together with enough butter.
111
00:06:55,690 --> 00:06:57,200
Then don't go be the big.
112
00:06:57,380 --> 00:06:59,390
Transparent, but go with it is dark blue collar.
113
00:06:59,930 --> 00:07:02,510
So basically this will override the background transparent.
114
00:07:02,990 --> 00:07:03,550
And that's it.
115
00:07:03,590 --> 00:07:04,520
Not only will save it.
116
00:07:06,400 --> 00:07:08,620
Go back here and refresh and then you go to home.
117
00:07:10,080 --> 00:07:16,290
Your page looks like this, and it will go to about the fake, you log in and the register in the pages
118
00:07:16,290 --> 00:07:16,620
looks.
119
00:07:17,880 --> 00:07:18,800
Do they have a background?
120
00:07:18,810 --> 00:07:22,920
The Navigator has a background, so guys, that's how you can check conditionally.
121
00:07:23,130 --> 00:07:26,400
Remember, with the drought path, I was just recapitulate.
122
00:07:26,790 --> 00:07:27,960
Then there the drought bob.
123
00:07:27,960 --> 00:07:31,550
You can get the current path, what you are on.
124
00:07:31,620 --> 00:07:35,940
So what do you having that you are a labourer, if that's empty, empty, if you are the home page,
125
00:07:35,940 --> 00:07:37,890
you don't need to add any classes or empty string.
126
00:07:37,920 --> 00:07:43,160
If you are on other pages, it's like sludge logging and slash about and so on, then access.
127
00:07:43,290 --> 00:07:44,850
Let's provide a bit background class.
128
00:07:45,300 --> 00:07:45,750
OK.
129
00:07:45,930 --> 00:07:47,520
And these two classes are a match together.
130
00:07:48,480 --> 00:07:52,770
One class when providing their tributes are starting grants, you cannot divide there variables.
131
00:07:53,040 --> 00:07:55,830
But here is a dynamic weather directive.
132
00:07:55,860 --> 00:07:57,510
Be bind you can provide.
133
00:07:57,510 --> 00:08:01,710
Here is simple expressions and you can provide your values from the variables and you can write your
134
00:08:01,710 --> 00:08:02,400
conditionals.
135
00:08:04,150 --> 00:08:08,950
I think that's going to be it for this lecture, and the neglect will continue, and I will show you
136
00:08:08,950 --> 00:08:14,350
how you can navigate between the pages without overloading the browser, you can see many will take
137
00:08:14,350 --> 00:08:16,840
a look at the top of your top of your page here.
138
00:08:17,350 --> 00:08:20,440
Every time I click on the page, it's a loading.
139
00:08:20,450 --> 00:08:27,280
You can see it's slightly changing and it's reloading basically that page as navigations goes.
140
00:08:28,300 --> 00:08:29,860
OK, so let's go on to your next lecture.
141
00:08:29,890 --> 00:08:30,250
Yes.
13235
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.