Device detection in ionic

Does ionic support some way to detect which device it’s on? If not is there some other way to do it? I found this (http://ngmodules.org/modules/ng-device-detector) but I’m not sure how compatible this module is with ionic. Any help is much appreciated!

You can use ionic.Platform or $ionicPlatform: http://ionicframework.com/docs/api/utility/ionic.Platform/