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

matchMedia events? #243

@justindujardin

Description

@justindujardin

I'm building an angular2 app and I'm trying to do dynamic things when window.matchMedia tells me that a media breakpoint has been hit.

It seems like this is bypassing change detection, and I suspect it might be because zone.js doesn't wrap the matchMedia API.

Does this sound plausible? Would you be open to a PR to work through and resolve the issue? Right now I have to manually tick the ng2 app when things change, and it feels pretty dirty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions