Legacy Angular directives such as ngIf, ngFor, and ngSwitch are not deprecated and are not going away any time soon.
A) True, the legacy directives are still supported and can be used alongside the new @-syntax.
B) False, the legacy directives are deprecated and will be removed in the next major version of Angular.
C) True, the legacy directives are still supported but cannot be used alongside the new @-syntax.
D) False, the legacy directives are not deprecated but will be removed in the next major version of Angular.
#angular #frontend #newSyntax
https://www.udemy.com/course/angular-15-professional-interview-questions-2023/?referralCode=4424F35416C160DD7C1C
The correct answer is A. The legacy Angular directives such as ngIf, ngFor, and ngSwitch are not deprecated and are not going away any time soon. They are still supported and can be used alongside the new @-syntax introduced in Angular 17. The new @-syntax is an optional feature that provides a more concise and readable way to write control flow statements in templates, but it does not replace the legacy directives. The other options are either incorrect or misleading.