fix(pages): fix titles and descriptions

This commit is contained in:
Alex 2020-04-02 19:22:11 +03:00
parent ef1421ee80
commit cca53006f4
11 changed files with 59 additions and 18 deletions

View file

@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { NbThemeService } from '@nebular/theme';
import {MetadataService} from '../../../../../src/app/@core/utils/metadata.service';
@Component({
selector: 'ngx-material-landing',
@ -10,7 +11,10 @@ import { NbThemeService } from '@nebular/theme';
],
})
export class MaterialLandingComponent {
constructor(private themeService: NbThemeService) {
constructor(private themeService: NbThemeService, private metadataService: MetadataService) {
this.metadataService.updateDescription('Ngx-admin material works perfectly with Angular Material and Nebular.' +
' Over 40+ Angular Components and 60+ Usage Examples.Take the best from both!');
this.metadataService.updateTitle('New Material theme of ngx-admin dashboard template based on Angular 9+');
this.themeService.changeTheme('ngx-landing-material');
}
}