You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/common/src/directives/ng_switch.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ export class NgSwitch {
144
144
`Previously the case value "${
145
145
stringifyValue(value)}" matched switch expression value "${
146
146
stringifyValue(
147
-
this._ngSwitch)}", but this is no longer the case with the stricter equality check.`+
147
+
this._ngSwitch)}", but this is no longer the case with the stricter equality check.`+
148
148
'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.'));
Copy file name to clipboardExpand all lines: packages/common/test/directives/ng_switch_spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
124
124
expect(consoleWarnSpy.calls.argsFor(0)[0])
125
125
.toBe(
126
126
'NG02001: As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. '+
127
-
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check.`+
127
+
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check.`+
128
128
'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.');
0 commit comments