title: ag-grid in angular4 custom cell style
body: <p>good day!
  i'm looking for grid component for angular 4... after some search i was found ag-grid.
  after i'm create sample app i have some trouble with following task:
  - in cell user can select value from select (dropdown) and after this cell must change style based on selected value.
  i'm create component with grid, component has own html and css file. in css file i  put classes for each cell state:</p>
  
  <pre><code>.entry-option1 {
      background-color: transparent;
  }
  .entry-option2 {
      background-color: #32CD32;
  }
  </code></pre>
  
  <p>in component for column i put definition:</p>
  
  <pre><code>this.columnDefs.push(
  { 
      headerName: 'Options',
      field: 'select',
      editable: true,
      cellEditor: 'select', 
      cellEditorParams: {
          values:[1, 2]
      }, 
      cellClass: (params:any) =&gt; {
          let className = this.getClassName(parseInt(params.value));
          return className;
      }
  });
  </code></pre>
  
  <p>and this getClassName:</p>
  
  <pre><code>private getClassForCalendarEntry(value: number): string {
  switch (type) {
      case 1:
          return 'entry-option1';
  
      case 2:
          return 'entry-option2';
      }
  
      return "";
  }
  </code></pre>
  
  <p>but this is not work: after change value correct class name applied to corresponded DOM element, but component css injected into result html with attribute filtering (i.e. .entry-option1[_ng-component1]) but alement does not have this attribute, so style does not applied...</p>
  
  <p>i dont want extract styles to global style, but i cant see another way to solve this issue... can anybody help me?</p>