mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 02:10:12 +01:00
fix(pages): titles and discriptions
This commit is contained in:
parent
cca53006f4
commit
c38f01911b
5 changed files with 48 additions and 11 deletions
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
import { Component, Inject, NgZone, OnDestroy, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import {
|
||||
filter,
|
||||
map,
|
||||
|
|
@ -21,6 +20,7 @@ import { fromEvent } from 'rxjs';
|
|||
|
||||
import { NgxStructureService } from '../../../@theme/services/structure.service';
|
||||
import { NgxTocStateService } from '../../../@theme/services/toc-state.service';
|
||||
import {MetadataService} from '../../../../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-admin-landing-page',
|
||||
|
|
@ -38,7 +38,7 @@ export class NgxAdminLandingPageComponent implements OnDestroy, OnInit {
|
|||
private activatedRoute: ActivatedRoute,
|
||||
private structureService: NgxStructureService,
|
||||
private tocState: NgxTocStateService,
|
||||
private titleService: Title) {
|
||||
private metaDataService: MetadataService) {
|
||||
}
|
||||
|
||||
get showSettings() {
|
||||
|
|
@ -63,7 +63,8 @@ export class NgxAdminLandingPageComponent implements OnDestroy, OnInit {
|
|||
}),
|
||||
filter(item => item),
|
||||
tap((item: any) => {
|
||||
this.titleService.setTitle(`Nebular - ${item.name}`);
|
||||
this.metaDataService.updateTitle(`Nebular - ${item.name}`);
|
||||
this.metaDataService.updateDescription(item.description);
|
||||
}),
|
||||
publishReplay(),
|
||||
refCount(),
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ export const structure = [
|
|||
{
|
||||
type: 'page',
|
||||
name: 'Installation Guidelines',
|
||||
description: 'A guideline to install ngx-admin on your machine: backend integration, tools you need to be installed.',
|
||||
children: [
|
||||
{
|
||||
type: 'block',
|
||||
|
|
@ -28,6 +29,7 @@ export const structure = [
|
|||
{
|
||||
type: 'page',
|
||||
name: 'Server deployment',
|
||||
description: 'How to set up your web-server to better serve the application on Angular.',
|
||||
children: [
|
||||
{
|
||||
type: 'block',
|
||||
|
|
@ -45,6 +47,7 @@ export const structure = [
|
|||
{
|
||||
type: 'page',
|
||||
name: 'Theme System',
|
||||
description: 'Theme System in is a set of rules we put into how SCSS files and variables are organized. Theme Map | Component Variables | Built-in-Themes',
|
||||
children: [
|
||||
{
|
||||
type: 'block',
|
||||
|
|
@ -56,6 +59,7 @@ export const structure = [
|
|||
{
|
||||
type: 'page',
|
||||
name: 'Change Theme',
|
||||
description: 'How to change the current theme in ngx-admin. Switch from Cosmic to Default. Runtime Theme Switch.',
|
||||
children: [
|
||||
{
|
||||
type: 'block',
|
||||
|
|
@ -67,6 +71,7 @@ export const structure = [
|
|||
{
|
||||
type: 'page',
|
||||
name: 'Backend integration',
|
||||
description: 'Approaches of integration of ngx-admin application with backend API. Integration with JSON REST server, angular-cli/webpack-dev-server setup.',
|
||||
children: [
|
||||
{
|
||||
type: 'block',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue