@kovalenko/translatable-title
v2.0.2
Published
Translates the title and watches language change
Readme
TranslatableTitle
Translates the title and watches language change
Installation
npm install @kovalenko/translatable-titleInject TranslatableTitleService into your component:
import {Component, inject} from '@angular/core';
import {TranslatableTitleService} from '@kovalenko/translatable-title';
@Component({
selector: 'app',
template: ``,
})
export class AppComponent {
readonly #translatableTitleService = inject(TranslatableTitleService);
constructor() {
this.#translatableTitleService.setTitle('Title');
}
}License
MIT
