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.
- Host: GitHub
- URL: https://github.com/maximnara/angularjs-active-menu
- Owner: maximnara
- License: mit
- Created: 2014-05-15T23:36:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-16T00:54:35.000Z (about 11 years ago)
- Last Synced: 2025-01-23T22:34:25.763Z (4 months ago)
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AngularJs active menu
=================Create interactive menu in angularjs app.
## Demo
__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
``````
You can write me for any reason - [email protected].