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.
@procademy2 жыл бұрын
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.
@lacertezzadellapena2 жыл бұрын
@@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
@procademy2 жыл бұрын
@@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.
@lacertezzadellapena2 жыл бұрын
@@procademy thank you very much for explaining it so clearly
@JaySharma8878 Жыл бұрын
it is fading out but the search input should take its space right? there is an empty space after closing the notification
@iNestchandan Жыл бұрын
Where are all lectures after Lec no. 22 of eShopping?
@mightyprogrammer2899 Жыл бұрын
.fadeOut { visibility: hidden; opacity: 0; transition: 0s 2s, opacity 2s linear; } this is the code if you are using external css styleUrls
@ADA-yl3dm6 ай бұрын
NG8002: Can't bind to 'ngСlass' since it isn't a known property of 'button