1
0

refactor done, todo fix tests

This commit is contained in:
Art Lowel
2017-10-25 13:31:10 +02:00
parent 376686856b
commit feca366290
48 changed files with 691 additions and 706 deletions

View File

@@ -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);
}
}