Skip to content

Conversation

@crisbeto
Copy link
Member

Switches all of the inherited event listeners in popover-edit to use @HostListener. In Ivy the host objects are merged when inheriting, whereas in ViewEngine they are overwritten. This means that with the current setup we'll end up with double event listeners once Ivy lands.

Switches all of the inherited event listeners in `popover-edit` to use `@HostListener`. In Ivy the `host` objects are merged when inheriting, whereas in ViewEngine they are overwritten. This means that with the current setup we'll end up with double event listeners once Ivy lands.
@crisbeto crisbeto added pr: merge safe target: patch This PR is targeted for the next patch release labels May 20, 2019
@crisbeto crisbeto requested a review from andrewseguin as a code owner May 20, 2019 05:10
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 20, 2019
@kseamon
Copy link
Collaborator

kseamon commented May 20, 2019

Another approach to consider here is pulling the common functionality into non-directive abstract classes and having both the Cdk and Mat versions derive from the abstract class rather than the current approach of Mat deriving from Cdk.

@crisbeto
Copy link
Member Author

I don't think that would make much of a difference. I'd rather keep it like this since it's consistent with what we did on other components. We can clean it up once Ivy is default.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels May 20, 2019
@mmalerba mmalerba merged commit 558295b into angular:master May 20, 2019
RudolfFrederiksen pushed a commit to RudolfFrederiksen/material2 that referenced this pull request Jun 21, 2019
angular#16060)

Switches all of the inherited event listeners in `popover-edit` to use `@HostListener`. In Ivy the `host` objects are merged when inheriting, whereas in ViewEngine they are overwritten. This means that with the current setup we'll end up with double event listeners once Ivy lands.
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants