0.0.2 • Published 7 years ago

ng-menu-aim v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

ng-menu-aim

An menu component for Angular.

Usage

In order to use the ng-menu-aim you have to include/import it into your application:

Installation

Install the module into your application and save it as a dev dependency in your package.json file

npm i ng-menu-aim --save
import {MenuComponent} from 'ng-menu-aim';

Include it in your components declarations list in your @NgModule(...):

@NgModule({
  //...
  declarations: [MenuComponent],
  //...
})

Use it in your template:

<app-menu [data]="data"></app-menu>

The example for data

[{
    "name": "用户管理",
    "url": "",
    "child": [{
        "name": "机构用户管理",
        "url": "/user/organization",
    }, {
        "name": "实名认证记录查询",
        "url": "/user/realName"
    }]
}]
0.0.2

7 years ago

0.0.1

7 years ago