You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support @Input(), @Output(), @HostBinding() defined in superclasses and mixins #6953
To clarify: in Dart, support for inheriting lifecycle hooks from superclasses is currently implemented in dev mode, but not in transformed model. This leads to inconsistent behavior between dev and transformed mode.
For reasons explained in the transformer design doc, we want to avoid global resolution in the transformer, so we do not implement this in transformed code. As a result, we will revert support in dev mode to avoid the inconsistent behavior.
#6879 introduces a dev-mode check which will alert users to missing implements <hook_interface> clauses. We are working on a way to make inheriting hooks from superclasses work, but do not have an agreed-upon design right now.
Activity
lacolaco commentedon Feb 9, 2016
+1
zoechi commentedon Feb 10, 2016
Support for lifecycle interface implementations in superclasses will be reverted :-(
kegluneq commentedon Feb 10, 2016
To clarify: in Dart, support for inheriting lifecycle hooks from superclasses is currently implemented in dev mode, but not in transformed model. This leads to inconsistent behavior between dev and transformed mode.
For reasons explained in the transformer design doc, we want to avoid global resolution in the transformer, so we do not implement this in transformed code. As a result, we will revert support in dev mode to avoid the inconsistent behavior.
#6879 introduces a dev-mode check which will alert users to missing
implements <hook_interface>clauses. We are working on a way to make inheriting hooks from superclasses work, but do not have an agreed-upon design right now.zoechi commentedon Feb 10, 2016
Ok, sounds promising :)
pkozlowski-opensource commentedon Oct 4, 2016
Closing as a duplicate of #11606. If there is a specific use-case to be added please comment on #11606.
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.