ngx-responsive
ngx-responsive copied to clipboard
user-agent-info directive not emitting an info event in v9.0.3
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.
Seems like because checking fails. In comparison of isPlatformBrowser(this._platformId) directive has _platformId as PlatformService from constructor.

This should fix, if will be merged ;)