Project

General

Profile

Actions

Refactor #4694

closed

Use ui-sref-active instead of ng-class where appropriate

Added by Walden Raines almost 11 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
-
Branch:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

See http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-sref-active

We can then replace this:

<a class="{someClass: isState('blah')}" ui-sref="blah">Hello!</a>

with:

<a ui-sref-active="someClass" ui-sref="blah">Hello!</a>

Related issues 1 (0 open1 closed)

Copied from Katello - Bug #4692: Some pages missing a title and just state 'Katello'ClosedWalden Raines03/18/201403/27/2014Actions
Actions

Also available in: Atom PDF