Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

@trevorade
Copy link

If the controller is a function, invokeCtrl.instance === ctrl

If the controller is an ES6 Class, invokeCtrl.instance is some other object separate from ctrl.

Either way, ctrl is the correct reference in all cases for post-binding locals. invokeCtrl.instance is the correct reference for pre-binding locals (which only works for function controllers anyways).

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Nov 8, 2017
@jelbourn
Copy link
Member

jelbourn commented Nov 8, 2017

Fixing in #10977

@jelbourn jelbourn closed this Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants