-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtime
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
The isStandalone seems to default to false instead of true, like the TODO comment states the fallback should be inverted with the new default behaviour.
angular/packages/core/src/render3/def_getters.ts
Lines 43 to 55 in b22677d
| /** | |
| * Checks whether a given Component, Directive or Pipe is marked as standalone. | |
| * This will return false if passed anything other than a Component, Directive, or Pipe class | |
| * See [this guide](guide/components/importing) for additional information: | |
| * | |
| * @param type A reference to a Component, Directive or Pipe. | |
| * @publicApi | |
| */ | |
| export function isStandalone(type: Type<unknown>): boolean { | |
| const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type); | |
| // TODO: standalone as default value (invert the condition) | |
| return def !== null ? def.standalone : false; | |
| } |
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
@angular/core 19.0.5
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtime