ngx-responsive
ngx-responsive copied to clipboard
Reason for using observables
Hi,
-
I would like to know why observables are being used in asynchronous way for finding the device information instead of returning the respective information synchronously without the need to subscribe to observable.
-
Is there any way where the provided services have methods which return boolean values for finding device information which can be used in java script. For example, I want isMobile() in the service which returns a boolean value just like *isMobile directive.
Hello,
1 - Not sure but maybe just to make uniform all the code with observable. 2 - Don't know sorry