Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 packages/common/src/directives/ng_switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class NgSwitch {
`Previously the case value "${
stringifyValue(value)}" matched switch expression value "${
stringifyValue(
this._ngSwitch)}", but this is no longer the case with the stricter equality check.` +
this._ngSwitch)}", but this is no longer the case with the stricter equality check. ` +
'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.'));
}
this._lastCasesMatched = this._lastCasesMatched || matched;
Expand Down
2 changes: 1 addition & 1 deletion 2 packages/common/test/directives/ng_switch_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
expect(consoleWarnSpy.calls.argsFor(0)[0])
.toBe(
'NG02001: As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' +
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check.` +
`Previously the case value "1" matched switch expression value "'1'", but this is no longer the case with the stricter equality check. ` +
'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.');


Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.