What is the purpose of the ionViewDidLoad() function?
<p>On running <code>ionic g page pageName</code> I get generated .ts,.css and .html files.</p>

<p>Inside the .ts file I have a function called <code>ionViewDidLoad(){}</code> and this is getting printed before my view appears.</p>

<p>This can be done in constructor itself I believe?</p>

<p>Can someone give me some reference of any blog or explanation about this function?</p>