kmk-menu v0.0.4
KmkMenuLibrary Usage
Simple library that shows menu that is loaded by url or default list
how to use in html
<lib-kmk-menu></lib-kmk-menu>
app.module.ts
KmkMenuModule.forRoot({ url: '' })
- if you pass url parameter then library tries to load menu list from that url.
KmkMenu
This library was generated with Angular CLI version 10.2.5.
Code scaffolding
Run ng generate component component-name --project kmk-menu to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project kmk-menu.
Note: Don't forget to add
--project kmk-menuor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build kmk-menu to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build kmk-menu, go to the dist folder cd dist/kmk-menu and run npm publish.
Running unit tests
Run ng test kmk-menu to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.