forked from hazza/dspace-angular
refactor done, todo fix tests
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
Inject,
|
||||
ViewEncapsulation,
|
||||
OnInit,
|
||||
HostListener
|
||||
HostListener, SimpleChanges, OnChanges
|
||||
} from '@angular/core';
|
||||
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
@@ -26,7 +26,7 @@ import { GLOBAL_CONFIG, GlobalConfig } from '../config';
|
||||
changeDetection: ChangeDetectionStrategy.Default,
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
export class AppComponent implements OnInit, OnChanges {
|
||||
|
||||
constructor(
|
||||
@Inject(GLOBAL_CONFIG) public config: GlobalConfig,
|
||||
@@ -71,4 +71,9 @@ export class AppComponent implements OnInit {
|
||||
);
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
console.log('AppComponent: onchanges called', changes);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user