cgmartin / sailsjs-angularjs-bootstrap-example

A suite of examples written for Sails.js, AngularJS, and Twitter Bootstrap
320 stars 105 forks source link

Use angular JSON methods for socket ops #12

Closed marco4net closed 10 years ago

marco4net commented 10 years ago

Changed conversion of incoming/outgoing data to angular specific JSON methods. Especially removes angular properties $$hashKey, $promise or $resolved that otherwise cause issues when inserting in databases (i.e. mongodb).

cgmartin commented 10 years ago

Thanks @marco4net! That's good to know about the issues related to io.JSON, that was new to me. Always happy to use angular's methods. :)