angular.js - angular bottom menu switching highlight, please demo
给我你的怀抱
给我你的怀抱 2017-05-15 17:11:49
0
2
874

1. Angular bottom menu switching highlight
2. Highlight even after refreshing

给我你的怀抱
给我你的怀抱

reply all(2)
给我你的怀抱

Thanks for the invitation, angular-ui-router can meet your needs

https://ui-router.github.io/n...

There is a demo in the official address above

A little explanation:

  <body ng-app="helloworld">
    <a ui-sref="hello" ui-sref-active="active">Hello</a>
    <a ui-sref="about" ui-sref-active="active">About</a>

    <ui-view></ui-view>
  </body>


    ui-sref-active="active" // 这个是ui-router提供的属性,会判断当前在哪个页面,然后添加active这个类,样式我们可以自己改
过去多啦不再A梦

Single-page applications can achieve the effect you want based on current route judgment and route driver class

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template