Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Directive for highlighting the active item #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rodsevich
Copy link

Here is an example topBar

<top-bar>
  <ul class="title-area">
    <li class="name"></li>
  </ul>
  <top-bar-section>
    <ul class="left">
       <li><a is-active href="#/">Inicio</a></li>
       <li><a is-active href="#/Vocabulario">Vocabulario</a></li>
    </ul>
    <ul class="right">
       <li><a is-active href="#/Seccion_critica">Secci&oacute;n Cr&iacute;tica</a></li>
       <li><a is-active href="#/Bloques_control">Bloques de Control</a></li>
       <li><a is-active href="#/Sincronizacion">Sincronizaci&oacute;n</a></li>
       <li><a is-active href="#/Semaforos">Sem&aacute;foros</a></li>
    </ul>
  </top-bar-section>
</top-bar>

A directive that automatically adds the 'active' class to the <li> item that corresponds to the current location of the app
            <top-bar>
                <ul class="title-area">
                    <li class="name">
                    </li>
                </ul>
                <top-bar-section>
                    <ul class="left">
                        <li><a is-active href="#/">Inicio</a></li>
                        <li><a is-active href="#/Vocabulario">Vocabulario</a></li>
                    </ul>
                    <ul class="right">
                        <li><a is-active href="#/Seccion_critica">Secci&oacute;n Cr&iacute;tica</a></li>
                        <li><a is-active href="#/Bloques_control">Bloques de Control</a></li>
                        <li><a is-active href="#/Sincronizacion">Sincronizaci&oacute;n</a></li>
                        <li><a is-active href="#/Semaforos">Sem&aacute;foros</a></li>
                    </ul>
                </top-bar-section>
            </top-bar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant