We are migrating from angular 1.x to 1.5 and we do have init() functions in all the controllers, as we have lifecycle hooks available in angular 1.5 , I just moved all the code from init() to
vm.$onInit() method. We usually put all the initialization stuff in init function before angular 1.5. Is there difference between init() and $onInit() ? Am I doing anything wrong ?
Thanks in Advance