Skip to content
#

ng5

Here are 17 public repositories matching this topic...

ngx-device-detector
jitangupta
jitangupta commented Aug 30, 2020

Instead of having to check each method one by one

isDesktop(): false
isMobile(): true
isTablet(): false

it would be really helpful if the deviceDetectorService.getDeviceInfo() returns the device_type also.

Here is what I did using the existing options:

this.deviceInfo.deviceType = deviceDetectorService.isDesktop ? 'desktop' : (deviceDetectorService.isMobile ?
        'mobil

Improve this page

Add a description, image, and links to the ng5 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ng5 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.