Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$onInit hook from Angular 1.5.0 will not fire for a state controller #2559

Closed
ealib opened this issue Feb 15, 2016 · 0 comments
Closed

$onInit hook from Angular 1.5.0 will not fire for a state controller #2559

ealib opened this issue Feb 15, 2016 · 0 comments
Milestone

Comments

@ealib
Copy link

ealib commented Feb 15, 2016

this.$onInit = function onInit() {
   // this will not fire when this is a state controller
};

See similar issue in angular-ui-bootstrap #5472.

dgsmith2 pushed a commit to dgsmith2/ui-router that referenced this issue Feb 19, 2016
After instantiating the controller, will fire its $onInit if defined.

Closes angular-ui#2559
@ProLoser ProLoser changed the title $onInit hook from Angular 1.5.0 will not fire for a state controller $onInit hook from Angular 1.5.0 will not fire for a state controller Mar 5, 2016
@christopherthielen christopherthielen added this to the 0.2.19 milestone Mar 5, 2016
christopherthielen pushed a commit that referenced this issue Mar 5, 2016
After instantiating the controller, will fire its $onInit if defined.

Closes #2559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants