Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Create generic IgxGrid Wrapper Component
posted

I want to create a wrapper for IgxGrid component which will have customizable inputs.

https://stackblitz.com/edit/angular-n71deq

Here is the stackblitz link which contains my problem. I have a component app-grid-wrapper which will contain igx-grid and another component which will pass <igx-column> as content wrapped inside the tag which will then show the columns as projection inside <igx-grid>. But using this approach breaks the application with the error.

NullInjectorError: No provider for InjectionToken IgxGridBaseToken!.

Is there any way this can be achieved. Thanks