We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0cc874 commit f32ee97Copy full SHA for f32ee97
src/app/child/child.component.ts
@@ -1,13 +1,14 @@
1
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
import { getObservableLifecycle } from 'ngx-observable-lifecycle';
3
+import { Nilable } from 'tsdef';
4
5
@Component({
6
selector: 'app-child',
7
templateUrl: './child.component.html',
8
changeDetection: ChangeDetectionStrategy.OnPush,
9
})
10
export class ChildComponent {
- @Input() input: number;
11
+ @Input() input: Nilable<number>;
12
13
constructor() {
14
const {
0 commit comments