mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
feat: docs app
This commit is contained in:
parent
713aff561e
commit
2129689f98
203 changed files with 15927 additions and 5 deletions
|
|
@ -0,0 +1,23 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { NgxMenuService } from '../../../@theme/services/menu.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-components-overview-block',
|
||||
styleUrls: ['./components-overview-block.component.scss'],
|
||||
templateUrl: './components-overview-block.component.html',
|
||||
})
|
||||
export class NgxComponentsOverviewBlockComponent implements OnInit {
|
||||
components: { name: string; icon: string; link: string }[];
|
||||
|
||||
constructor(private menu: NgxMenuService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.components = this.menu
|
||||
.getPreparedMenu('/docs')
|
||||
.find(({ title }) => title === 'Components')
|
||||
.children
|
||||
.slice(1)
|
||||
.map(({ data: { name, icon, type }, link }) => ({ name, icon, link, group: type === 'group' }));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue