Angular - Directives
You want to display different messages for user roles: 'admin', 'editor', 'guest', and a default for others. Which Angular template correctly uses
*ngSwitch to handle this?*ngSwitch to handle this?[ngSwitch] binding[ngSwitch]="userRole".*ngSwitchCase values are strings with quotes*ngSwitchCase="'admin'".*ngSwitchDefault without a value, which is correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions