title: How to set div width using ng-style
body: <p>I am trying to set the div width dynamically using <code>ng-style</code> but it is not applying the style. Here is the code:</p>
  
  <pre><code>&lt;div style="width: 100%;" id="container_fform" ng-controller="custController"&gt;
      &lt;div style="width: 250px;overflow: scroll;"&gt;
          &lt;div ng-style="myStyle"&gt;&amp;nbsp;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>var MyApp = angular.module('MyApp', []);
  
  var custController = MyApp.controller('custController', function ($scope) {
      $scope.myStyle="width:'900px';background:red";
  
  });
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>Fiddle link: <a href="http://jsfiddle.net/Rameshramamoorthy/344vF/" rel="noreferrer">Fiddle</a></p>