title: AngularJS ng-style with a conditional expression
body: <p>I am handling my issue like this:</p>
  
  <pre><code>ng-style="{ width: getTheValue() }"
  </code></pre>
  
  <p>But to avoid having this function on the controller side, I would much prefer to do something like this:</p>
  
  <pre><code>ng-style="{ width: myObject.value == 'ok' ? '100%' : '0%' }"
  </code></pre>
  
  <p>How can I do this?</p>