Skip to content

Commit

Permalink
fix: make sure it returns a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ingowagner committed Nov 20, 2024
1 parent 96fe4ff commit f61623e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class PropertyExtractor implements NgModuleMetadata {

//Starting in Angular 19 the default (in case it's undefined) value for standalone is true
if (isStandalone === undefined) {
isStandalone = VERSION.major && Number(VERSION.major) >= 19;
isStandalone = !!(VERSION.major && Number(VERSION.major) >= 19);
}

return { isDeclarable, isStandalone };
Expand Down

0 comments on commit f61623e

Please sign in to comment.