Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 4
    Anik, why would you use JSON.parse instead of the built-in angular.fromJson? Commented Jul 9, 2015 at 2:56
  • 2
    @DanielNalbach , does it make any big difference between JSON.parse and angular.fromJson ? Commented Jul 9, 2015 at 4:25
  • 1
    Not really, angular.fromJson is just a wrapper over JSON.parse with a string check to prevent double parsing. I thought it did more, but checked the source, and that's it. Commented Jul 9, 2015 at 15:49
  • cool, any idea how that could be bidirectional? (e.g. for form fields) Commented Nov 15, 2016 at 16:52