{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/191","labels_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/191/comments","events_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/191/events","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/191","id":116193547,"number":191,"title":"WIP : Add description from model meta to docs template","user":{"login":"davidcheung","id":1787590,"avatar_url":"https://avatars.githubusercontent.com/u/1787590?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcheung","html_url":"https://github.com/davidcheung","followers_url":"https://api.github.com/users/davidcheung/followers","following_url":"https://api.github.com/users/davidcheung/following{/other_user}","gists_url":"https://api.github.com/users/davidcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcheung/subscriptions","organizations_url":"https://api.github.com/users/davidcheung/orgs","repos_url":"https://api.github.com/users/davidcheung/repos","events_url":"https://api.github.com/users/davidcheung/events{/privacy}","received_events_url":"https://api.github.com/users/davidcheung/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":"D4AF37"}],"state":"open","locked":false,"assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-10T20:21:54Z","updated_at":"2015-11-19T16:25:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/pulls/191","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/191","diff_url":"https://github.com/strongloop/loopback-sdk-angular/pull/191.diff","patch_url":"https://github.com/strongloop/loopback-sdk-angular/pull/191.patch"},"body":"#### Dependant:\r\n[rest-adapter.js @ Strong-remoting](https://github.com/strongloop/strong-remoting/pull/255)  providing sharedClass in restClass\r\n\r\n\r\n#### Change:\r\nservices.js adds `description` to meta used in `services.template.ejs`\r\nservices.template.ejs now apends model `description` defined in loopback\r\nafter the generic description.\r\n\r\n@bajtos @ritch  As of now the description is only appended to the hard coded description as I'm assuming many models do not have a description in model. \r\n\r\nhttps://github.com/strongloop/loopback-sdk-angular/issues/132\r\n\r\nSigned-off-by: David Cheung <davidcheung@ca.ibm.com>"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/comments/158108226","html_url":"https://github.com/strongloop/loopback-sdk-angular/pull/191#issuecomment-158108226","issue_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/191","id":158108226,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T16:25:28Z","updated_at":"2015-11-19T16:25:28Z","body":"It looks much better now. I am wondering if we can improve this a bit more, to make it more clear where the model-provided description begins?\r\n\r\nThis is what I am seeing now:\r\n\r\n```js\r\n/*\r\n *...\r\n * @description\r\n *\r\n * A $resource object for interacting with the `Scope` model.\r\n * Schema for Scope which represents the permissions that are granted,to client applications by the resource owner\r\n */\r\n\r\n//...\r\n\r\n/*\r\n * ...\r\n * @description\r\n *\r\n * A $resource object for interacting with the `RoleMapping` model.\r\n * Map principals to roles\r\n *\r\n */\r\n```\r\n\r\nThoughts?"}}