{"id":18870794,"url":"https://github.com/cmandersen/angular-menu","last_synced_at":"2026-02-14T21:30:18.692Z","repository":{"id":13082761,"uuid":"15763793","full_name":"cmandersen/angular-menu","owner":"cmandersen","description":"A Bootstrap menu module for use in Angular","archived":false,"fork":false,"pushed_at":"2014-01-14T06:30:40.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T23:51:19.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmandersen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-09T10:34:14.000Z","updated_at":"2014-01-14T06:30:40.000Z","dependencies_parsed_at":"2022-07-12T15:08:19.582Z","dependency_job_id":null,"html_url":"https://github.com/cmandersen/angular-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fangular-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fangular-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fangular-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fangular-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmandersen","download_url":"https://codeload.github.com/cmandersen/angular-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239817446,"owners_count":19701945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T05:22:59.439Z","updated_at":"2026-02-14T21:30:18.644Z","avatar_url":"https://github.com/cmandersen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Menu Module\n\n\nA [Bootstrap](http://getbootstrap.com/) (**3.0.3**) menu module for use in [Angular](http://angularjs.org/) (**1.2.7**).\n\n## Installation\n\nUsing the module is simple. Just copy the lib-folder into the root of your Angular installation, and inject \"**napp.menu**\" in your app.\n\n```javascript\nvar app = angular.module(\"exampleApp\", [\"napp.menu\"]);\n```\n\nThe module is also available in a [RequireJS](http://requirejs.org/) compatible version. Just include the `rq-angular-napp-menu.js` file instead of the `angular-napp-menu.js` file.\n\n##Usage\n\nThe module consists of three parts, the `\u003cmenu title=\"...\"\u003e` for the menu in general, `\u003cmenu-item-parent match=\"...\"\u003e` for menu-items with children, and `\u003cmenu-item route=\"...\" match=\"...\"\u003e` for the underlying menu items.\n\nAs you can see, the _menu-item-parent_ and _menu-item_ tags, have a _match_ attribute. That attribute is used for regex-matching if the menu-item should be shown as active.\n\nAs with normal Angular markup, you can also use attributes, e.g. `\u003cdiv menu title=\"...\"\u003e` and `\u003cdiv menu-item route=\"...\"\u003e` etc.\n\nThe module interprits those tags and replaces them with a regular Bootstrap menu.\n\n### Example\n\n```html\n\u003cmenu title=\"Angular is awesome!\"\u003e\n  \u003cmenu-item route=\"#/somepage\" match=\"/somepage$\"\u003eSome page\u003c/menu-item\u003e\n  \u003cmenu-parent-item match=\"/otherpage\"\u003e\n    \u003cmenu-item route=\"#/otherpage/details\" match=\"/otherpage/details$\"\u003eOther page details\u003c/menu-item\u003e\n    \u003cmenu-item route=\"#/otherpage/list\" match=\"/otherpage/list$\"\u003eOther page list\u003c/menu-item\u003e\n  \u003c/menu-parent-item\u003e\n\u003c/menu\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fangular-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmandersen%2Fangular-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fangular-menu/lists"}