An open API service indexing awesome lists of open source software.

https://github.com/maximnara/angularjs-active-menu

Create interactive menu in angularjs app.
https://github.com/maximnara/angularjs-active-menu

Last synced: 3 months ago
JSON representation

Create interactive menu in angularjs app.

Awesome Lists containing this project

README

        

AngularJs active menu
=================

Create interactive menu in angularjs app.

## Demo
![alt tag](http://s1.ipicture.ru/uploads/20140516/BwMXvBcp.gif)

__My AngularJs ver. 1.2.16__

## Instalation
* Include angular-active-menu.js in your index.html
* Add ```angularActiveMenu``` into depedency list. Like this ``` angular.module('myApp', ['angularActiveMenu']); ```

## How to use
Insert __us-active-menu__ tag in menu element like this ```Menu Item```.

__MainCtrl__ it's controller name. If your menu item should be active on different controllers you can specify them as an array, like: ```us-active-menu="['MainCtrl', 'SettingsCtrl', 'FriendsCtrl']"```.

Directive will add class __active__ on element when current controller and specified will be equal.

## Full example
```


Main


Friends


Settings

```

You can write me for any reason - [email protected].