ngx-observable-lifecycle
Advanced tools
Comparing version 2.3.1 to 3.0.0
{ | ||
"name": "ngx-observable-lifecycle", | ||
"version": "2.3.1", | ||
"version": "3.0.0", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.0.0" |
@@ -88,3 +88,3 @@ # NgxObservableLifecycle | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core'; | ||
import { getObservableLifecycle } from 'ngx-observable-lifecycle'; | ||
@@ -97,3 +97,3 @@ | ||
}) | ||
export class ChildComponent { | ||
export class ChildComponent implements OnChanges { | ||
@Input() input1: number | undefined | null; | ||
@@ -139,2 +139,7 @@ @Input() input2: string | undefined | null; | ||
} | ||
// when using the ngOnChanges hook, you have to define the hook in your class even if it's empty | ||
// See https://stackoverflow.com/a/77930589/2398593 for more info | ||
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method | ||
public ngOnChanges() {} | ||
} | ||
@@ -141,0 +146,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38828
213
147