title: How to detect browser using angularjs?
body: <p>I am new to angularjs. How can I detect userAgent in angularjs. Is it possible to use that in controller? Tried something like below but no luck!</p>
  
  <pre><code>  var browserVersion = int((/msie (\d+)/.exec(lowercase(navigator.userAgent)) || [])[1]);
  </code></pre>
  
  <p>I need to detect IE9 specifically!</p>