I'm new to ngx-datatable
Why do I get "Cannot find name 'ViewEncapsulation'" when adding encapsulation: ViewEncapsulation.None??
I'm sure its something simple that I'm missing - a little help would be appreciated.
@Component({
selector: 'app-datatable',
styles: [
.datatable-header-cell-label {
font-weight: bold;
color: red ;
}
],
template:
<div>
<ngx-datatable
[rows]="college"
[columns]="columns"
[columnMode]="standard"
>
</ngx-datatable>
</div>
,
encapsulation: ViewEncapsulation.None
})
Thanks - Tony
You need to add ViewEncapsulation from angular/core:
import { Component, ViewEncapsulation } from '@angular/core';
Most helpful comment
You need to add ViewEncapsulation from angular/core:
import { Component, ViewEncapsulation } from '@angular/core';