Skip to content

Ng1StateDeclaration.onEnter documentation incorrect #3153

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

Closed
smhc opened this issue Nov 15, 2016 · 1 comment
Closed

Ng1StateDeclaration.onEnter documentation incorrect #3153

smhc opened this issue Nov 15, 2016 · 1 comment

Comments

@smhc
Copy link

smhc commented Nov 15, 2016

The documentation for:
https://ui-router.github.io/docs/latest/interfaces/ng1.ng1statedeclaration.html#onenter

States the interface as:
onEnter: function(trans, state) {

But it is actually:
onEnter: function(injectable providers) {

Using the interface from the documentation generates the error:

Error: [$injector:unpr] Unknown provider: transProvider <- trans

@christopherthielen
Copy link
Contributor

Thanks for the report.
This is a duplicate of #3072 and is fixed by #3076

The docs site will be updated when the next version is released

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

No branches or pull requests

2 participants