Go ProSign in
Hide playlist

    Apply CSS Classes Conditionally with Angular 2’s ngClass

    ngClass is Angular 2's way of allowing you to apply classes and styles based on what's happening in your component. While CSS covers many scenarios with pseudo classes, you'll often run into scenarios where you need to apply classes based on certain conditions, so ngClass comes to the rescue.

    You must be a Member to view code