I was following a tutorial about Angular + Firebase i stopped in a datatable error. the package name
npm install angular-4-data-table --save
UPDATE--------
import { Component, Inject, forwardRef } from '@angular/core';
import { DataTable } from './table.component';
import { HEADER_TEMPLATE } from './header.template';
import { HEADER_STYLE } from "./header.style";
@Component({
moduleId: module.id +'',
selector: 'data-table-header',
template: HEADER_TEMPLATE,
styles: [HEADER_STYLE],
host: {
'(document:click)': '_closeSelector()'
}
})
export class DataTableHeader {
columnSelectorOpen = false;
_closeSelector() {
this.columnSelectorOpen = false;
}
constructor(@Inject(forwardRef(() => DataTable)) public dataTable: DataTable) {}
}
Remove folder node_modules
npm i // install all packages from package.json
npm install angular-4-data-table --save // install your addidtional package
Second thing - you probably have errors in header.component.ts etc. Please post your code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.