This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.1.
npm install example-ng8-libThis project was generated with Angular CLI version 8.0.1.
- Add ExampleNg8LibModule module as dependency :
```
npm install --save example-ng8-lib
- Import ExampleNg8LibModule:
``
//...
import { ExampleNg8LibModule } from 'example-ng8-lib';
@NgModule({
imports: [
ExampleNg8LibModule,
// ...
});
`
Inputs:
- [logo] Set logo url
-
[avatar] Set avatar url
-
[menus] Set menu list.
Example:
`
[
{name: 'Home', url: '/'},
{name: 'About Us', url: '/about'}
]
`FooterComponent
`
`SideMenuComponent
`
`
Input:
- [menus] Set menu list.
Example:
`
[
{name: 'Home', url: '/'},
{name: 'About Us', url: '/about'}
]
`LoginComponent
`
`Example
`
// Component code
//...
import { Component } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl:
})
export class AppHomeComponent {
avatar = 'http://www.myiconfinder.com/uploads/iconsets/256-256-6a9a5acd215316d5cd242192f19ba1ca-user.png';
logo = 'http://getbootstrap.com/docs/4.3/assets/brand/bootstrap-social.png';
headerMenus = [
{name: 'Home', url: '/'},
{name: 'About Us', url: '/about'},
{name: 'Products', url: '/product'},
{name: 'Contact', url: '/contact'}
];
sideMenus = [
{name: 'Home', url: '/'},
{name: 'About Us', url: '/about'},
{name: 'Products', url: '/product'},
{name: 'Contact', url: '/contact'}
];
}
``