title: Angular UI-Grid Conditional Cell Template
body: <p>I have a cell template that displays data from an external ui-select. However I only want the cell template to appear if the row(s) is/are selected. Here is my current code:</p>
  
  <pre><code>$scope.gridOptions.columnDefs = [
    { name: 'resourceChannel', 
      cellTemplate: '&lt;div ng-if="$(\'.ui-grid-row\').hasClass(\'ui-grid-row-selected\')"&gt;{{grid.appScope.channel.selected.channel}}&lt;/div&gt;'},
  ];
  </code></pre>