Angular ui router ui-sref-active on parent

后端 未结 4 1565
忘了有多久
忘了有多久 2020-12-19 10:09

I have one parent state and many childs states. If I want the ui-sref-active on the parent to work when I am on one of the child I need to do this \"ha

4条回答
  •  [愿得一人]
    2020-12-19 10:39

    ui-sref-active can take an object using a *[wild card] to match child states. This will work with abstract states.

  • section
  • Learn more about the uiSrefActive directive

提交回复
热议问题