ajgl-side-menu
v0.0.6
Published
Side menu for company created in Angular by Ajgl
Downloads
429
Maintainers
Readme
AjglSideMenu
Side menu for company created in Angular by Ajgl
Install
npm i ajgl-side-menu
Usage
import { AjglSideMenuComponent } from 'ajgl-side-menu';
Import the sidemenu in the component ts
@Component({
selector: 'app-admin-layout',
standalone: true,
imports: [
CommonModule, RouterOutlet,
SideMenuComponent, AjglSideMenuComponent
],
templateUrl: './admin-layout.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Properties:
[isAuthenticated]
titleColor
title
subtitle
[onSignIn]
[onSignOut]
Put this code in html
<lib-ajgl-side-menu
[isAuthenticated]="isAuthenticated()"
[titleColor]="TitleColor.blue"
title="Your company title"
subtitle="Your company subtitle"
(onSignIn)="onLogin()"
(onSignOut)="onLogout()"
/>