This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular.toJson): only strip properties beginning with $$, not $
BREAKING CHANGE: If you expected `toJson` to strip these types of properties before, you will have to manually do this yourself now.
- Loading branch information
1 parent
8c02a49
commit c054288
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c054288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello
Since this commit allows to serialize properties which starts with $ but due to this we are facing some issue while submitted for data is binded on server Web.Api.
Before this in angularJs 1.2 it was working fine.
c054288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashutoshparmarQT, this is a documented breaking change between
v1.2.x
andv1.3.x
.Sorry, if this is inconvenient, but if you need the
v.1.2.x
behaviour you will have to strip those properties manually.BTW, this is documented in the 1.2 to 1.3 migration section of the Developer Guide (although the description needs to be improved).
c054288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gkalpak Thanks.
c054288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I added a more clear explanation (b0e7d54), so hopefully people won't be caught off-guard in the future 😃