Sharing Top Content from the Angular-sphere.
Browsing Tag

active class

It is different from ngRoute as it changes your views, which are based on the State of the Application and not by route URL.Ui-router Applications behaves like a state machine.State is a basic building-block for UI-Router Application.Instead of referencing a URL like HREF, it references a State…
Read More...

Learn UI-Routing Series

It is different from ngRoute as it changes your views, which are based on the State of the Application and not by route URL.Ui-router Applications behaves like a state machine.State is a basic building-block for UI-Router…

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.…