mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit improves the reported error when importing e.g. `RouterModule.forRoot()` from within `Component.imports`. Such import is not supported, as standalone components can only refer to other standalone entities or NgModules in their `imports` array; `ModuleWithProviders` are not supported as `Component.imports` is meant to be used for the compilation scope of the component, _not_ for configuring DI. Closes #46003 PR Close #46009 |
||
|---|---|---|
| .. | ||
| integrationtest | ||
| linker | ||
| ngcc | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| import_meta_url.d.ts | ||
| index.ts | ||
| package.json | ||
| tsconfig-build.json | ||
| tsconfig.json | ||