{"action":"created","issue":{"url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/55","repository_url":"https://api.github.com/repos/vladotesanovic/ngSemantic","labels_url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/55/comments","events_url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/55/events","html_url":"https://github.com/vladotesanovic/ngSemantic/issues/55","id":172564038,"number":55,"title":"sm-dropdown question","user":{"login":"tspayne87","id":3534962,"avatar_url":"https://avatars.githubusercontent.com/u/3534962?v=3","gravatar_id":"","url":"https://api.github.com/users/tspayne87","html_url":"https://github.com/tspayne87","followers_url":"https://api.github.com/users/tspayne87/followers","following_url":"https://api.github.com/users/tspayne87/following{/other_user}","gists_url":"https://api.github.com/users/tspayne87/gists{/gist_id}","starred_url":"https://api.github.com/users/tspayne87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tspayne87/subscriptions","organizations_url":"https://api.github.com/users/tspayne87/orgs","repos_url":"https://api.github.com/users/tspayne87/repos","events_url":"https://api.github.com/users/tspayne87/events{/privacy}","received_events_url":"https://api.github.com/users/tspayne87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T21:51:49Z","updated_at":"2016-09-06T18:29:20Z","closed_at":null,"body":"I may be miss-understanding how to use the sm-dropdown but let me pose this question.  Lets say I have a component like this.\r\n\r\n```javascript\r\nimport { Component, Input, OnInit } from \"@angular/core\";\r\nimport { Role } from '../models/Role';\r\n\r\n@Component({\r\n    selector: \"role-user-edit\",\r\n    template:\r\n       `<sm-dropdown class='search selection' title='Search Roles...' (onChange)='change($event)'>\r\n            <sm-item *ngFor='let role of roles'>{{role.name}}</sm-item>\r\n       </sm-dropdown>`\r\n})\r\nexport class UserEditComponent implements OnInit {\r\n\r\n    roles: Role[];\r\n\r\n    ngOnInit() {\r\n        Role.find()\r\n            .subscribe((roles: Role[]) => {\r\n                this.roles = roles;\r\n            });\r\n    }\r\n\r\n    change(role: Role) {\r\n        // Do Stuff with role......\r\n    }\r\n}\r\n```\r\nIf I do a console.log on role within the change method I will get the html object that comes back from the dropdown JQuery module.  I would expect to get the role object but that is not what I get.  My question is am I doing this wrong and if so how would I get object or at least a better identifier for the object so I can at least search for it within my list of roles.  Thanks."},"comment":{"url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/comments/245044579","html_url":"https://github.com/vladotesanovic/ngSemantic/issues/55#issuecomment-245044579","issue_url":"https://api.github.com/repos/vladotesanovic/ngSemantic/issues/55","id":245044579,"user":{"login":"vladotesanovic","id":738638,"avatar_url":"https://avatars.githubusercontent.com/u/738638?v=3","gravatar_id":"","url":"https://api.github.com/users/vladotesanovic","html_url":"https://github.com/vladotesanovic","followers_url":"https://api.github.com/users/vladotesanovic/followers","following_url":"https://api.github.com/users/vladotesanovic/following{/other_user}","gists_url":"https://api.github.com/users/vladotesanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/vladotesanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladotesanovic/subscriptions","organizations_url":"https://api.github.com/users/vladotesanovic/orgs","repos_url":"https://api.github.com/users/vladotesanovic/repos","events_url":"https://api.github.com/users/vladotesanovic/events{/privacy}","received_events_url":"https://api.github.com/users/vladotesanovic/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T18:29:20Z","updated_at":"2016-09-06T18:29:20Z","body":"Please use sm-select element for this.\r\n\r\nhttps://ng-semantic.herokuapp.com/#/elements/select"}}
{"actor":{"display_login":"vladotesanovic"}}