angular.toJson

Improve this Doc View Source angular.toJson

  1. function in module ng

Serializes input into a JSON-formatted string. Properties with leading $$ characters will be stripped since angular uses this notation internally.

Usage

angular.toJson(obj, pretty);

登录查看完整内容