-
Notifications
You must be signed in to change notification settings - Fork 26.7k
Closed as not planned
Closed as not planned
Copy link
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less worldfeatureIssue that requests a new featureIssue that requests a new feature
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
If I understand how signals are implemented correctly, the Angular compiler makes the signals work by compiling in the necessary scaffolding.
It would be nice to see the same feature / thinking applied to imports.
So instead of having to import in the component decorator like this:
@Component({
// Import the `ProfilePhoto` component in
// order to use it in this component's template.
imports: [ProfilePhoto],
/* ... */
})
The Angular compiler just reads the template or the class implementation of the component and scans for the imports being used and automatically scaffolds the code for the implementation.
Proposed solution
Use the compiler to "Understand" what imports are used in the implementation, so that the user can skip redeclaring imports within an @Directive ...
Alternatives considered
The way it's currently implemented ...
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less worldfeatureIssue that requests a new featureIssue that requests a new feature