Coder Social home page Coder Social logo

ng2: uiSrefActive error about angular HOT 6 CLOSED

ui-router avatar ui-router commented on April 25, 2024
ng2: uiSrefActive error

from angular.

Comments (6)

christopherthielen avatar christopherthielen commented on April 25, 2024

From @kolkov on September 8, 2016 12:17

Oh-ah! It's because state changes when I click to the dropdown button... But how can I highlight active state element parent without changing state at click?

from angular.

christopherthielen avatar christopherthielen commented on April 25, 2024

From @kolkov on September 8, 2016 13:14

UISrefActiveEq - and what about this?
link to doc

from angular.

claudiuconstantin avatar claudiuconstantin commented on April 25, 2024

'link to doc' is dead now :(

from angular.

christopherthielen avatar christopherthielen commented on April 25, 2024

@claudiuconstantin

https://ui-router.github.io/ng2/docs/latest/modules/directives.html
https://ui-router.github.io/ng2/docs/latest/classes/directives.uisrefactive.html

from angular.

kolkov avatar kolkov commented on April 25, 2024

Now this worked for me.

<li class="nav-item dropdown" uiSrefActive="active" ngbDropdown>
          <a class="nav-link dropdown-toggle" style="cursor: pointer;" role="button" id="dropdownBasic1" ngbDropdownToggle>{{'NAVBAR.SETTINGS' | translate}}</a>
          <div ngbDropdownMenu class="dropdown-menu" aria-labelledby="dropdownSettings">
            <a class="dropdown-item" uiSrefActive="active" uiSref="devices">Equipment</a>           
          </div>
</li>

from angular.

christopherthielen avatar christopherthielen commented on April 25, 2024

working now? nice.

from angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.