Angular - Standalone Components
How do you correctly define a standalone component in Angular?
standalone: true in the @Component decorator.Example works!
' }) export class ExampleComponent {} correctly includesstandalone: true along with selector and template.Example works!
' }) export class ExampleComponent {} is the correct way to declare a standalone component.standalone: true [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions