Skip to content
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

user-agent-info directive not emitting an info event in v9.0.3 #147

Open
bjornharvold opened this issue May 17, 2020 · 2 comments
Open

user-agent-info directive not emitting an info event in v9.0.3 #147

bjornharvold opened this issue May 17, 2020 · 2 comments

Comments

@bjornharvold
Copy link
Contributor

Regression error

AppModule:

ResponsiveModule.forRoot({
      breakPoints: {
        xs: {max: 320},
        sm: {min: 544, max: 767},
        md: {min: 768, max: 991},
        lg: {min: 992, max: 1199},
        xl: {min: 1200}
      },
      debounceTime: 100 // allow to debounce checking timer
    } as IResponsiveConfig)

app.component.html:
<user-agent-info (info)="deviceInfo($event)"></user-agent-info>

There is never any info emitted here. No error either.

@BaHXeLiSiHg
Copy link

BaHXeLiSiHg commented Jun 2, 2021

Seems like because checking fails. In comparison of isPlatformBrowser(this._platformId) directive has _platformId as PlatformService from constructor.

image

@BaHXeLiSiHg
Copy link

This should fix, if will be merged ;)

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