{"action":"created","issue":{"url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/7","labels_url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/7/comments","events_url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/7/events","html_url":"https://github.com/trochette/Angular-Design-Patterns-Best-Practices/issues/7","id":41594366,"number":7,"title":"Justification/Further explanation of design patterns","user":{"login":"yintothayang","id":5374825,"avatar_url":"https://avatars.githubusercontent.com/u/5374825?v=3","gravatar_id":"","url":"https://api.github.com/users/yintothayang","html_url":"https://github.com/yintothayang","followers_url":"https://api.github.com/users/yintothayang/followers","following_url":"https://api.github.com/users/yintothayang/following{/other_user}","gists_url":"https://api.github.com/users/yintothayang/gists{/gist_id}","starred_url":"https://api.github.com/users/yintothayang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yintothayang/subscriptions","organizations_url":"https://api.github.com/users/yintothayang/orgs","repos_url":"https://api.github.com/users/yintothayang/repos","events_url":"https://api.github.com/users/yintothayang/events{/privacy}","received_events_url":"https://api.github.com/users/yintothayang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-31T19:45:45Z","updated_at":"2015-03-06T02:38:43Z","closed_at":"2015-03-06T02:38:43Z","body":"Hi Tommy, couldn't find an email anywhere so this is the only way I could seem to talk to you. \r\n\r\nCould you explain how, I could get the \"slides\" in the NotesModel into $scope to be bound to an attribute in the html? I don't understand how to get objects in the Model into $scope to be bound to ng-attributes. \r\n\r\nAlso why does NotesModel inherit from EventDispatcher?  \r\n\r\nI really like the ideas you present here, you solve complex controller interactions elegantly. It seems like you have used ReactJS before, as these Angular modules are starting to look like React components! Love the reusability in the Model and Service providers. \r\n\r\nIf would rather talk via email i'm at yintothayang@gmail.com \r\n\r\nThanks a bunch in advance, \r\n\r\nYin"},"comment":{"url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/comments/77496726","html_url":"https://github.com/trochette/Angular-Design-Patterns-Best-Practices/issues/7#issuecomment-77496726","issue_url":"https://api.github.com/repos/trochette/Angular-Design-Patterns-Best-Practices/issues/7","id":77496726,"user":{"login":"yintothayang","id":5374825,"avatar_url":"https://avatars.githubusercontent.com/u/5374825?v=3","gravatar_id":"","url":"https://api.github.com/users/yintothayang","html_url":"https://github.com/yintothayang","followers_url":"https://api.github.com/users/yintothayang/followers","following_url":"https://api.github.com/users/yintothayang/following{/other_user}","gists_url":"https://api.github.com/users/yintothayang/gists{/gist_id}","starred_url":"https://api.github.com/users/yintothayang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yintothayang/subscriptions","organizations_url":"https://api.github.com/users/yintothayang/orgs","repos_url":"https://api.github.com/users/yintothayang/repos","events_url":"https://api.github.com/users/yintothayang/events{/privacy}","received_events_url":"https://api.github.com/users/yintothayang/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T02:38:43Z","updated_at":"2015-03-06T02:38:43Z","body":"I never received a reply, he looks busy with Apple stuff now. \r\n\r\nRegardless, I think i've got the paradigms down now,  checkout: https://github.com/MakoWare/Dojo/blob/UIrefactor/parse/public/new/components/contacts/contactList.js\r\n\r\nWhen one of your models gets data (probably from a service) fire a notifications.notify() event. On your  controller in defineListeners() add the appropriate event listener. When that event handler is called then put the data you need from your model into the $scope. If you have anymore questions let me know. "}}