Sharing Top Content from the Angular-sphere.
Browsing Tag

color selected row

Highlight selected row in ngFor

Now whenever you click on any row our function setClickedRow(i) will set the value of selectedRow to the index of the row clicked the ngClass argument for that row will evaluate to true and the .active class will be applied for that row. In the Angular2 tutorial, we will see how to…
Read More...