You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by StavNoyAkur8 November 22, 2023 Strict mode is a great feature.
It is activated when passing 2+ parameters - typically the tested component and it's module.
But standalone components don't have a module to pass as a second parameter.
We can simply pass null as the second parameters, or an empty array (which would usually be used for keeping multiple modules), but that's not obvious, and hard to enforce on a large project:
Discussed in #7577
Originally posted by StavNoyAkur8 November 22, 2023
Strict mode is a great feature.
It is activated when passing 2+ parameters - typically the tested component and it's module.
But standalone components don't have a module to pass as a second parameter.
We can simply pass
null
as the second parameters, or an empty array (which would usually be used for keeping multiple modules), but that's not obvious, and hard to enforce on a large project:What I'd like: Detect that a component is standalone, make it activate strict mode.
Alternative: Allow global config of strict mode the default, regardless of standalone. Probably a bigger feature altogether
The text was updated successfully, but these errors were encountered: