Can someone explain the purpose of the " \' " in this code snippet?
<div ng-style="{ \'cursor\': row.cursor }"
Is there a reason why it can't be written simply as
<div ng-style="{ cursor: row.cursor }"
Here is the complete code snippet:
rowTemplate: '<div ng-style="{ \'cursor\': row.cursor }" ng-repeat="col
in renderedColumns" ng-class="col.colIndex()" class="ngCell {{col.cellClass}}"
style="overflow: visible"><div class="ngVerticalBar" ng-style="{height: rowHeight}"
ng-class="{ ngVerticalBarVisible: !$last }"> </div><div ng-cell></div></div>',
I am confused about why the first ng-style uses \', while the second one just specifies height without '. Any insights on this?
Code source: https://github.com/angular-ui/ng-grid/issues/994