-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extends MatTable #12996
Comments
i use es5. my error is in this snippet of code: if (this._headerRowOutlet.viewContainer.length > 0) { where my i update to es6, but i get another issues, so i still in the es5. |
@ThiagoMarra Would you be able to share more information? How do you use the extended table component? |
Okay , I created:
after that I used in my html like this:
when a run I get the error: in my debug I see that the |
@ThiagoMarra I've set up a test project and was able to reproduce your issue. Since the template of the component for the If you add the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Extends MatTable to inject any service;
What is the expected behavior?
--/--
What is the current behavior?
When i do,
export class MyTableComponent<T> extends MatTable<T> { };
I get the error:
Cannot read property 'viewContainer' of undefined
I think, injection is not working properly;
What are the steps to reproduce?
--/--
What is the use-case or motivation for changing an existing behavior?
for control, and to insert some services;
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material: 6.4.7;
TypeScript: 3.0.1;
Browser: none effect;
Is there anything else we should know?
--//--.
The text was updated successfully, but these errors were encountered: