Within my data-table.component.ts file, I have a reference to TableSorting which is also defined in the same file.
Upon running my application, I encountered the following error in the console:
Uncaught ReferenceError: TableSorting is not defined at line 54
@Input() sorting: TableSorting;
import {
Component,
Output,
Input,
EventEmitter,
OnChanges,
SimpleChange, NgModule,
NgZone
} from '@angular/core';
import { IconComponent } from '../icon';
import { CheckboxComponent, CheckboxEvent } from '../checkbox';
import { DataField, DataType, EditType } from '../../models';
import {
SortPipe,
NumberDelimiterPipe,
RangePipe,
HighlighterPipe,
SafeHTMLPipe
} from '../../pipes';
@Component({
selector: 'data-table',
templateUrl: './data-table.component.html',
styleUrls: ['./data-table.component.css']
})
@NgModule({
declarations: [
CheckboxComponent, IconComponent, SortPipe, Range, NumberDelimiterPipe, HighlighterPipe, SafeHTMLPipe
]
})
export class DataTableComponent implements OnChanges {
public activeColor: string = '#2196f3';
public inactiveColor: string = 'grey';
@Input() columns: DataField[];
public visibleColumns: DataField[];
@Input() selectColumns: boolean = false;
@Input() data: Object[];
public tableData: DataWrapper[];
// The rest of the code remains unchanged
I am seeking assistance in resolving the aforementioned error that is being displayed in the console. Any help would be appreciated. Thank you.