Install Ng8CommonGenerator
npm install @ng8/common-generator --save
Import to project
import { Ng8CommonGeneratorModule } from '@ng8/common-generator'
@NgModule({
declarations: [
],
imports: [
Ng8CommonGeneratorModule
],
providers: [],
bootstrap: []
})
Menu Item Component
Input:
menuName
menuUrl
Example:
Header Component
- Inputs:
+ logoUrl
+ avatarUrl
+ userName
- We can use the header component and the menu item component to generate the profile menu list.
- Example:
Left SideBar Component
- Use the sidebar component and the menu item component to generate menu sidebar
- Example:
Login Component
- Input:
+ signInUrl
- Example:
Footer Component
- We can write anything inside the "ng8-common-generator-footer" tag.
- Example:
Here is the footer
Demo
https://github.com/dhqthai/app-demo-library