mirror of
https://github.com/mempool/mempool.git
synced 2025-01-10 07:26:46 +01:00
22 lines
451 B
TypeScript
22 lines
451 B
TypeScript
|
import { Injectable } from '@angular/core';
|
||
|
import { Title, Meta } from '@angular/platform-browser';
|
||
|
|
||
|
@Injectable({
|
||
|
providedIn: 'root'
|
||
|
})
|
||
|
export class SeoService {
|
||
|
defaultTitle = 'mempool - Bitcoin Explorer';
|
||
|
|
||
|
constructor(
|
||
|
private titleService: Title,
|
||
|
) { }
|
||
|
|
||
|
setTitle(newTitle: string) {
|
||
|
this.titleService.setTitle(newTitle + ' - ' + this.defaultTitle);
|
||
|
}
|
||
|
|
||
|
resetTitle() {
|
||
|
this.titleService.setTitle(this.defaultTitle);
|
||
|
}
|
||
|
}
|