title: ngOnInit vs ionViewDidLoad in ionic 2 or ionic 2+
body: <p>Which one will I use for initializing data and why?  </p>
  
  <pre><code>ngOnInit() {
      this.type = 'category';
      this.getData();
      this.setData();
  }
  
  ionViewDidLoad() {
      this.type = 'category';
      this.getData();
      this.setData();
  }
  </code></pre>