Cool. So would I use that to set a variable and then use ngIf inside my template to show or hide different input components?
What is the advantage of detecting the platform in javascript as opposed to media queries in CSS?
Cool. So would I use that to set a variable and then use ngIf inside my template to show or hide different input components?
What is the advantage of detecting the platform in javascript as opposed to media queries in CSS?