question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I get access to Ng2SmartTableComponent component inside my class

See original GitHub issue

After updating to v 1.5.0 I am not able to get access Ng2SmartTableComponent inside my class. When I try to import Ng2SmartTableComponent and use it like following

 import { Ng2SmartTableComponent} from 'ng2-smart-table';
  @ViewChild('atribTbl', { static: false }) atribTable: Ng2SmartTableComponent;

It throws error saying Ng2SmartTableComponent not found.

Appreciate your response and help in this issue.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
SnakyBeakycommented, Dec 10, 2019

Same here. There’s a workaround to keep using those components.

For example, for the Ng2SmartTableComponent I replaced the import with:

import { ɵbo as Ng2SmartTableComponent } from 'ng2-smart-table';

The generated bundle index uses those weird characters (ɵbo) but it can be renamed with the as back to Ng2SmartTableComponent

0reactions
chriss5commented, Jun 9, 2020

For 1.6.0 the workaround no longer seems to be necessary, see my comment in #1097

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to pass data to ng2-smart-table renderComponent from ...
tricky solution: prepare data for SelectComponent before render component with table. container.component.ts: ngOnInit() { this.userService.
Read more >
Smart Tables Integration and usage with Angular 6 - Zeolearn
We will generate a component called table using ng g c table. The ng command will not only create a default component but...
Read more >
Angular 13 Smart Table Guide - AppDividend
Step 3: Create a Table Component. ... Type the following command to generate the component. ... Now, import this component inside the app.component....
Read more >
vamidicreations/ng2-smart-table - npm
First thing you need to do is to import the ng2-smart-table directives into your component. import { Ng2SmartTableModule } from '@ ...
Read more >
ng2-smart-table In Angular - C# Corner
Add Setting Property inside component and create array for display data. public settings = {; columns: {; id: { ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found