ngx-responsive icon indicating copy to clipboard operation
ngx-responsive copied to clipboard

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

Open bjornharvold opened this issue 5 years ago • 2 comments

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.

bjornharvold avatar May 17 '20 13:05 bjornharvold

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

image

BaHXeLiSiHg avatar Jun 02 '21 08:06 BaHXeLiSiHg

This should fix, if will be merged ;)

BaHXeLiSiHg avatar Jun 02 '21 14:06 BaHXeLiSiHg