@@ -6,7 +6,7 @@ import { from } from 'rxjs';
66
77import { takeUntilDestroyed , toObservable } from '@angular/core/rxjs-interop' ;
88import { Meta , Title } from '@angular/platform-browser' ;
9- import { getRouteData } from 'src/app/_services/route.service' ;
9+ import { getRouteData , RouteService } from 'src/app/_services/route.service' ;
1010import { MonacoEditorConfig } from 'src/app/monaco/monaco-global-config' ;
1111import { MonacoConfig } from 'src/app/monaco/ng-monaco-config' ;
1212import { SwitchComponent } from '../../components/switch/switch.component' ;
@@ -71,7 +71,6 @@ export class EncoderViewComponent {
7171 mode = signal < string > ( 'encode' ) ;
7272 isEncode = signal < boolean > ( true ) ;
7373 modeLabel = computed ( ( ) => ( this . isEncode ( ) ? 'Encode' : 'Decode' ) ) ;
74- title = '' ;
7574 private meta = inject ( Meta ) ;
7675 private titleService = inject ( Title ) ;
7776 constructor ( ) {
@@ -81,7 +80,8 @@ export class EncoderViewComponent {
8180 }
8281 this . titleService . setTitle ( 'UtilPlex |' + data . title ) ;
8382 if ( data . description ) this . meta . updateTag ( { name : 'description' , content : data . description } ) ;
84- this . title = this . convertService . title ;
83+
84+ RouteService . Title . set ( this . convertService . title ) ;
8585 toObservable ( this . isEncode )
8686 . pipe ( takeUntilDestroyed ( ) )
8787 . subscribe ( ( ) => {
0 commit comments