We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7a6756 commit 34e8bb1Copy full SHA for 34e8bb1
projects/demo/src/app/wizard/wizard-header-actions.demo.ts
@@ -18,12 +18,16 @@ export class WizardHeaderActionsDemo {
18
userActive = true;
19
20
headerActionClicked(actionId: string) {
21
- if ('search' === actionId) {
22
- window.open('https://www.google.com?q=what+is+the+meaning+of+life', '_blank');
23
- } else if ('info' === actionId) {
24
- window.open('https://clarity.design', '_blank');
25
- } else {
26
- this.userActive = !this.userActive;
+ switch (actionId) {
+ case 'search':
+ window.open('https://www.google.com?q=what+is+the+meaning+of+life', '_blank');
+ break;
+ case 'info':
+ window.open('https://clarity.design', '_blank');
27
28
+ case 'user':
29
+ this.userActive = !this.userActive;
30
31
}
32
33
0 commit comments