Skip to content
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

Instantiate abstract component is possible #13994

Closed
wKoza opened this issue Jan 18, 2017 · 2 comments
Closed

Instantiate abstract component is possible #13994

wKoza opened this issue Jan 18, 2017 · 2 comments
Labels
area: core Issues related to the framework runtime feature Issue that requests a new feature
Milestone

Comments

@wKoza
Copy link
Contributor

wKoza commented Jan 18, 2017

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
When I create an abstract component class, it's possible to 'instantiate' it

semantically, it isn't normal to be able to instantiate an abstract class.

Expected behavior
we cannot create an instance of an abstract class / Component

Minimal reproduction of the problem with instructions

see plunkr : https://plnkr.co/edit/A7Ja9FS4WlGYJ6tHM8HY?p=preview

  • Angular version: 2.3.X
  • Language: [TypeScript X.X]
@pkozlowski-opensource pkozlowski-opensource added the area: core Issues related to the framework runtime label Feb 1, 2017
@tbosch tbosch added the feature Issue that requests a new feature label Apr 10, 2017
@ngbot ngbot bot added this to the Backlog milestone Jan 23, 2018
@pkozlowski-opensource
Copy link
Member

This is fixed in Angular v9 running ivy where it is no longer possible to add an abstract component to NgModule: https://ng-run.com/edit/r1B61BrxTc6gXcTvk7KK

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants