{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/210","repository_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular","labels_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/210/comments","events_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/210/events","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/210","id":136845383,"number":210,"title":"Return Date objects from any Angular SDK resource that has a date property","user":{"login":"scalarsys","id":3541856,"avatar_url":"https://avatars.githubusercontent.com/u/3541856?v=3","gravatar_id":"","url":"https://api.github.com/users/scalarsys","html_url":"https://github.com/scalarsys","followers_url":"https://api.github.com/users/scalarsys/followers","following_url":"https://api.github.com/users/scalarsys/following{/other_user}","gists_url":"https://api.github.com/users/scalarsys/gists{/gist_id}","starred_url":"https://api.github.com/users/scalarsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalarsys/subscriptions","organizations_url":"https://api.github.com/users/scalarsys/orgs","repos_url":"https://api.github.com/users/scalarsys/repos","events_url":"https://api.github.com/users/scalarsys/events{/privacy}","received_events_url":"https://api.github.com/users/scalarsys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/labels/%23community%20contribution","name":"#community contribution","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/labels/feature","name":"feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-02-26T23:39:38Z","updated_at":"2016-08-21T00:34:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/pulls/210","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/210","diff_url":"https://github.com/strongloop/loopback-sdk-angular/pull/210.diff","patch_url":"https://github.com/strongloop/loopback-sdk-angular/pull/210.patch"},"body":"I took a try at #141 \"Auto-convert timestamp/date string attributes to Date objects\" using an example provided by @xak2000\r\n\r\n[Gist of Example](https://gist.github.com/xak2000/62ce767d871cf6d5e0f9)\r\n\r\nMy contribution extends the services template to include the dateTransformer factory from the example. The  template then conditionally injects the dateTransformer and adds a transformResponse to each resource that has at least one property that is defined as a date, passing the property name(s) to the transformer.\r\n\r\nConcerns:\r\n- Should there be a switch on the generator or some other backwards compatibility approach\r\n- Introduces a requirement for lbServices consumers to have lodash and moment\r\n- Is this the best way to get and array of property definition from within the template `meta.sharedClass.ctor.definition.rawProperties`\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/comments/241231914","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/210#issuecomment-241231914","issue_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/210","id":241231914,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T00:34:48Z","updated_at":"2016-08-21T00:34:48Z","body":"Can one of the admins verify this patch?"}}
{"actor":{"display_login":"slnode"}}