title: Angular @Input() value is not changed when the value is same
body: <p>When I run this program, initially I get the output as <code>false</code>, <code>5</code>, <code>500</code> as I have initialized them in the child component like that, but when I try to click on update button, I am not able to revert to the previous values. I am expecting the output to be <code>true</code>, <code>10</code>, <code>1000</code>, but I am getting it as <code>false</code>, <code>5</code>, <code>1000</code>. Only the number which was different got changed. </p>
  
  <p>How can I solve this issue so that I can get the values whatever I set in the parent component?</p>
  
  <p>Link to <a href="https://stackblitz.com/edit/angular-safr6n?file=src%2Fapp%2Fapp.component.ts" rel="nofollow noreferrer">stackblitz</a>.</p>
  
  <p><strong>app-component.html</strong></p>
  
  <pre><code>&lt;span (click)="clickme()"&gt;Update data&lt;/span&gt;
  </code></pre>
  
  <p><strong>app-component.ts</strong></p>
  
  <pre><code>export class AppComponent  {
    public parentBool: boolean;
    public parentNum: number;
    public p2: number;
  
  
    public ngOnInit(): void {
      this.parentBool = true;
      this.parentNum = 10;
      this.p2 = 100;
    }
  
    public clickme(): void {
      this.parentBool = true;
      this.parentNum = 10;
      this.p2 = 1000;
    }
  }
  </code></pre>
  
  <p><strong>hello.component.ts</strong></p>
  
  <pre><code>@Component({
    selector: 'hello-comp',
    template: `
      &lt;div&gt;
       Boolean value is - {{boolChild}} &lt;br/&gt;
       Number value is - {{numChild}} &lt;br /&gt;
       Second number is - {{numChild2}}
      &lt;/div&gt;
    `,
    changeDetection: ChangeDetectionStrategy.OnPush
  })
  export class MyComponent {
    @Input() boolChild: boolean;
    @Input() numChild: number;
    @Input() numChild2: number;
  
  
    public ngOnInit(): void {
      this.boolChild = false;
      this.numChild = 5;
      this.numChild2 = 500;
    }
    constructor(private _cd: ChangeDetectorRef){}
  
      public ngOnChanges(changes: {}): void {
        // this._cd.detectChanges();
        console.log(changes);
      }
  }
  </code></pre>