Angular - Fundamentals
Which of the following is the correct way to define a standalone component in Angular 17+?
@Component({ standalone: true, selector: 'app-sample', template: 'Hello
' }) export class SampleComponent {} matches the correct syntax; A is plain function, B is for modules, D is invalid class extension.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions