title: Angular JS button ng click to one function vs desktop
body: <p>I'm using <code>angular material</code> for my app. I want a button to do different things when executed on a phone or tablet vs a desktop view. </p>
  
  <p>For example if clicked on desktop then print value1 from model or if clicked on mobile or tab then print value2. Basically I want to know how I can trigger 2 different functions for desktop vs mobile or tab.</p>