S kumar
2016-07-11 03:11:11 UTC
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
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
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.