{"action":"created","issue":{"url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/1","labels_url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/1/comments","events_url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/1/events","html_url":"https://github.com/aupac/ember-aupac-cascading-select/issues/1","id":97042677,"number":1,"title":"how to install in an ember-cli app","user":{"login":"shopapps","id":8806928,"avatar_url":"https://avatars.githubusercontent.com/u/8806928?v=3","gravatar_id":"","url":"https://api.github.com/users/shopapps","html_url":"https://github.com/shopapps","followers_url":"https://api.github.com/users/shopapps/followers","following_url":"https://api.github.com/users/shopapps/following{/other_user}","gists_url":"https://api.github.com/users/shopapps/gists{/gist_id}","starred_url":"https://api.github.com/users/shopapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopapps/subscriptions","organizations_url":"https://api.github.com/users/shopapps/orgs","repos_url":"https://api.github.com/users/shopapps/repos","events_url":"https://api.github.com/users/shopapps/events{/privacy}","received_events_url":"https://api.github.com/users/shopapps/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-07-24T12:33:59Z","updated_at":"2015-08-06T22:34:35Z","closed_at":"2015-07-28T09:59:55Z","body":"Hi,\r\n\r\nI am wanting to use this in an ember-cli app, however, the npm install method didn't install it enough to allow me to use it in my App? errored saying addon couldnt be found or similar.  so I tried copying the addon folder to the route of my app, then the file in  the components folder into the /app/components folder and the file in templates/components across as well.\r\n\r\nthis stopped any reference errors to not being able to find the addon...\r\n\r\nit's not mentioned, but i assume you have to create the models in question and then link them with belongsTo and hasMany ?\r\n\r\nin my controller i put:\r\n\r\nitems:[{\r\n label: 'Request Type',\r\n modelClass: 'request-type',\r\noptionsValuePath: 'content.id',\r\noptionsLabelPath: 'content.name'\r\n},\r\n{\r\n label: 'Sub Request Type',\r\n modelClass: 'request-sub-type',\r\noptionsValuePath: 'content.id',\r\noptionsLabelPath: 'content.name'\r\n}]\r\n\r\nthen in the template i have:\r\n{{aupac-cascading-select items=items selection=requestSubType store=controller.store}}\r\n\r\n\r\nnow i see a new error:\r\n\r\nError: `modelClass` is not only supported at the top level item not index 1\r\n\r\nany help you can offer on how to get this working in an Ember-Cli App is appreciated..\r\n\r\nthanks.\r\n\r\nPaul."},"comment":{"url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/comments/128530019","html_url":"https://github.com/aupac/ember-aupac-cascading-select/issues/1#issuecomment-128530019","issue_url":"https://api.github.com/repos/aupac/ember-aupac-cascading-select/issues/1","id":128530019,"user":{"login":"jackmatt2","id":6348088,"avatar_url":"https://avatars.githubusercontent.com/u/6348088?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmatt2","html_url":"https://github.com/jackmatt2","followers_url":"https://api.github.com/users/jackmatt2/followers","following_url":"https://api.github.com/users/jackmatt2/following{/other_user}","gists_url":"https://api.github.com/users/jackmatt2/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmatt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmatt2/subscriptions","organizations_url":"https://api.github.com/users/jackmatt2/orgs","repos_url":"https://api.github.com/users/jackmatt2/repos","events_url":"https://api.github.com/users/jackmatt2/events{/privacy}","received_events_url":"https://api.github.com/users/jackmatt2/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:34:35Z","updated_at":"2015-08-06T22:34:35Z","body":"OK, that would be good."}}