title: What does the " \' " means in the ng-style?
body: <p>what does the " \' " in the following code means ? </p>
  
  <pre><code>&lt;div ng-style="{ \'cursor\': row.cursor }" 
  </code></pre>
  
  <p>Why can't one just write </p>
  
  <pre><code>&lt;div ng-style="{ cursor: row.cursor }" 
  </code></pre>
  
  <p>The full code</p>
  
  <pre><code>rowTemplate: '&lt;div ng-style="{ \'cursor\': row.cursor }" ng-repeat="col
  in renderedColumns" ng-class="col.colIndex()" class="ngCell {{col.cellClass}}" 
  style="overflow: visible"&gt;&lt;div class="ngVerticalBar" ng-style="{height: rowHeight}" 
  ng-class="{ ngVerticalBarVisible: !$last }"&gt;&amp;nbsp;&lt;/div&gt;&lt;div ng-cell&gt;&lt;/div&gt;&lt;/div&gt;',
  </code></pre>
  
  <p>I also dun understand why in the first ng-style the code uses \', and in the second ng-style the codes uses height directly without \'.</p>
  
  <p>Codes taken from <a href="https://github.com/angular-ui/ng-grid/issues/994" rel="nofollow">https://github.com/angular-ui/ng-grid/issues/994</a></p>