ngClass Directive in Angular | Directives | Angular 12+

  Рет қаралды 46,757

procademy

procademy

Күн бұрын

Пікірлер: 16
@gabrieldonizettidario6169
@gabrieldonizettidario6169 2 жыл бұрын
This one is interesting too. Good job!
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
For some reasons on my side It works only with 'fadeOut' [ngClass]="{ 'fadeOut': displayNotification }" with speech marks, otherwise it throws error. Anyway, thank you very much for your service. Looking forward to learning with the rest of the course.
@procademy
@procademy 2 жыл бұрын
If there is a hyphen or space between your CSS class name e.x. fade-out, then it is required to include it withing quotes, otherwise it will throw error. But if there is no hyphen or space then it should work fine.
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
@@procademy It was the hyphen indeed! I did use fade-out, but why this kind of issue? Thank you so much for the channel again
@procademy
@procademy 2 жыл бұрын
@@lacertezzadellapena we specify the class name and the condition for that as a key-value pair inside curly braces. So basically we are creating an object which has a property with the class name. Now a property name of an object cannot have spaces or hyphen in it. If we want to use a space or a hyphen in property name, we need to wrap it within quotes.
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
@@procademy thank you very much for explaining it so clearly
@JaySharma8878
@JaySharma8878 Жыл бұрын
it is fading out but the search input should take its space right? there is an empty space after closing the notification
@iNestchandan
@iNestchandan Жыл бұрын
Where are all lectures after Lec no. 22 of eShopping?
@mightyprogrammer2899
@mightyprogrammer2899 Жыл бұрын
.fadeOut { visibility: hidden; opacity: 0; transition: 0s 2s, opacity 2s linear; } this is the code if you are using external css styleUrls
@ADA-yl3dm
@ADA-yl3dm 6 ай бұрын
NG8002: Can't bind to 'ngСlass' since it isn't a known property of 'button
@shahidshaikh148
@shahidshaikh148 Жыл бұрын
".fadeOut {visibility: hidden; opacity:0; transition: visibility 0s 2s, opacity 2s linear;}"
@bohthard5723
@bohthard5723 Жыл бұрын
can i get the source code because i want to modify and see how it works
@urwrong108
@urwrong108 2 жыл бұрын
add class renderer you would have shown
@amoghchavan970
@amoghchavan970 Жыл бұрын
just like dom manipulation in js
@jayakumar2927
@jayakumar2927 2 жыл бұрын
github link
What is Child Component | Components | Angular 12+
11:46
procademy
Рет қаралды 48 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
ngStyle Directive in Angular | Directives | Angular 12+
5:38
procademy
Рет қаралды 42 М.
Angular For Beginners - 8. ngClass
13:12
Teddy Smith
Рет қаралды 9 М.
Subjects in RxJS | Observables | Angular 12+
16:14
procademy
Рет қаралды 57 М.
Renderer2 in Angular | Directives | Angular 12+
12:13
procademy
Рет қаралды 24 М.
Angular Resource API - Everything You Have To Know (so far)
27:58
Decoded Frontend
Рет қаралды 18 М.
What is Observable | Observables | Angular 12+
14:16
procademy
Рет қаралды 161 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН