Skip to content
sneppets

sneppets

  • Algorithms
  • Interview Programs
  • Datastructures
  • Java
  • Golang
  • Cloud
display different colors for odd/even rows using ngFor loop and ngClass

Display different colors for odd/even rows using ngFor loop and ngClass

August 24, 2020September 17, 2020 Editorial Staff1 Comment on Display different colors for odd/even rows using ngFor loop and ngClass

This tutorial guides you on how to display different colors for odd/even rows using ngFor loop and ngClass in Angular 9. Let’s see in our example, how to style elements with an even index in different color than the elements… Read More!

Angular angular, angular-9, NgClass, ngFor
dynamic and conditional CSS classes with ngClass angular 9

Angular 9 : Dynamic and conditional CSS classes with ngClass

August 20, 2020August 23, 2020 Editorial StaffLeave a Comment on Angular 9 : Dynamic and conditional CSS classes with ngClass

This tutorial guides you on how to apply dynamic and conditional CSS classes with ngClass in Angular 9. NgClass is a built-in directive which can be used to add and remove CSS classes dynamically and conditionally on an HTML element.

Angular angular, angular-9, CSS, NgClass
Copyright © 2018 Sneppets. All Rights Reserved