title: Angular 2 ngOnchange event is getting called irrective of any change
body: <p>Helo All,</p>
  
  <p>I am facing a issue, as I am new in Angular so it may be a something I am missing.</p>
  
  <p>In my application, in one of the child component ngOnChanges is getting called irrespective on any change, In below screen shot you will find all the currentValues and previousvalues properties of changes object is same.</p>
  
  <p>Let me know if I am missing something.</p>
  
  <p>Please also refer below code</p>
  
  <p>Thanks</p>
  
  <p>import { Component, Input, SimpleChanges, OnInit} from '@angular/core';
  import { OnChanges, OnDestroy } from @angular/core/src/metadata/lifecycle_hooks';</p>
  
  <pre><code>@Component({
  selector: 'xxxxxx',
  templateUrl: './result.component.html',
  styleUrls: ['./result.component.css']    
  </code></pre>
  
  <p>})</p>
  
  <pre><code>export class ResultComponent implements OnInit, OnChanges, OnDestroy {
  
  
  @Input()
  searchResults: SearchResults.SearchResult;
  
  @Input()
  searchText: string;
  
  @Input()
  loading: boolean = false;
  
  ngOnInit() {
      var logger = "stop me debugger";
  }
  
  
  ngOnChanges(changes: SimpleChanges) {
  
      if (changes.searchResults &amp;&amp; !changes.searchResults.firstChange) {
  
  
      }
  }
  
  
  ngOnDestroy(): void {
      var logger = "stop me debugger";
  }
  
  
  
  constructor() {
  
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p><a href="https://i.stack.imgur.com/oc9dB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oc9dB.png" alt="enter image description here"></a></p>