title: How to use "fixedColumns" in Datatable Angular 6
body: <p>I am new in Angular using DataTable in Angular 6. </p>
  
  <p>(Referred : <a href="https://l-lin.github.io/angular-datatables" rel="nofollow noreferrer">https://l-lin.github.io/angular-datatables</a>)</p>
  
  <p>I have installed fixedcolumns.</p>
  
  <p><code>npm install datatables.net-fixedcolumns-bs</code></p>
  
  <p>my angular code to initialize table is</p>
  
  <pre><code>ngOnInit() {   
      this.dtOptions[0] = {
        pagingType: 'full_numbers',
        pageLength: 25,
        info:"Showing _START_ to _END_ of _TOTAL_ results",
        infoEmpty:"Showing 0 to 0 of 0 results",
        scrollX:true,
        scrollCollapse:true,
        fixedColumns:{
          leftColumns: 1,
          rightColumns: 1
        }
      }; 
  </code></pre>
  
  <p>and HTML code is </p>
  
  <pre><code>&lt;table class="table table-hover row-border hover" datatable [dtOptions]="dtOptions[0]" [dtTrigger]="dtTrigger" &gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style="text-align: left"&gt;Flag/Register name&lt;/th&gt;
              &lt;th style="text-align: left"&gt;Country/Government&lt;/th&gt;
              &lt;th style="text-align: center"&gt;Action&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr *ngFor="let flagView of flagViewModel"&gt;
              &lt;td&gt;{{flagView.countryName}} &lt;/td&gt;
              &lt;td&gt;
                  &lt;div style="text-transform: uppercase" *ngIf="flagView.flagnameOfficialOther!=null"&gt;
                      {{flagView.flagnameOfficialOther}}
                  &lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="text-align: center"&gt;
                  &lt;a style="border-top:0;border-left:0;border-right:0;" [routerLink]="['/flags/',flagView.flagId]" class="button-action x-small"&gt;View&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I am not getting any error message, but it is not working. </p>
  
  <p>Please advice me what I need to do.</p>
  
  <p>Thanks in advance.</p>