Skip to content

Commit

Permalink
fix(table): add selector to table component
Browse files Browse the repository at this point in the history
Fixes:
More than one component matched on this element.
Make sure that only one component's selector can match a given element.
Conflicting components: NbTable,CdkTable
  • Loading branch information
yggg committed Mar 13, 2020
1 parent 7eddfe2 commit c7c6ff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framework/theme/components/cdk/table/table.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const NB_TABLE_TEMPLATE = `
<ng-container nbFooterRowOutlet></ng-container>`;

@Component({
selector: 'nb-table-not-implemented',
template: ``,
})
// tslint:disable-next-line:component-class-suffix
Expand All @@ -50,6 +51,8 @@ export class NbTable<T> extends CdkTable<T> {
}

const COMPONENTS = [
NbTable,

// Template defs
NbHeaderCellDefDirective,
NbHeaderRowDefDirective,
Expand Down

0 comments on commit c7c6ff9

Please sign in to comment.