{"action":"created","issue":{"url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/14","repository_url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect","labels_url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/14/comments","events_url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/14/events","html_url":"https://github.com/softsimon/angular-2-dropdown-multiselect/issues/14","id":178967291,"number":14,"title":"Full example","user":{"login":"nick-wellinghoff-sp","id":6548321,"avatar_url":"https://avatars.githubusercontent.com/u/6548321?v=3","gravatar_id":"","url":"https://api.github.com/users/nick-wellinghoff-sp","html_url":"https://github.com/nick-wellinghoff-sp","followers_url":"https://api.github.com/users/nick-wellinghoff-sp/followers","following_url":"https://api.github.com/users/nick-wellinghoff-sp/following{/other_user}","gists_url":"https://api.github.com/users/nick-wellinghoff-sp/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-wellinghoff-sp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-wellinghoff-sp/subscriptions","organizations_url":"https://api.github.com/users/nick-wellinghoff-sp/orgs","repos_url":"https://api.github.com/users/nick-wellinghoff-sp/repos","events_url":"https://api.github.com/users/nick-wellinghoff-sp/events{/privacy}","received_events_url":"https://api.github.com/users/nick-wellinghoff-sp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T20:32:09Z","updated_at":"2016-10-03T23:47:32Z","closed_at":null,"body":"Can you post a project where you list this component as a dependency and use it in the project? I followed the instructions and it seems like a lot of stuff is missing to allow npm etc to index things right. I can't use the module without specifying the full relative path to your ts file. Once I do get it running I get a lot of errors. A example project that uses your component would be awesome!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/comments/251259070","html_url":"https://github.com/softsimon/angular-2-dropdown-multiselect/issues/14#issuecomment-251259070","issue_url":"https://api.github.com/repos/softsimon/angular-2-dropdown-multiselect/issues/14","id":251259070,"user":{"login":"ordinaryzelig","id":41839,"avatar_url":"https://avatars.githubusercontent.com/u/41839?v=3","gravatar_id":"","url":"https://api.github.com/users/ordinaryzelig","html_url":"https://github.com/ordinaryzelig","followers_url":"https://api.github.com/users/ordinaryzelig/followers","following_url":"https://api.github.com/users/ordinaryzelig/following{/other_user}","gists_url":"https://api.github.com/users/ordinaryzelig/gists{/gist_id}","starred_url":"https://api.github.com/users/ordinaryzelig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordinaryzelig/subscriptions","organizations_url":"https://api.github.com/users/ordinaryzelig/orgs","repos_url":"https://api.github.com/users/ordinaryzelig/repos","events_url":"https://api.github.com/users/ordinaryzelig/events{/privacy}","received_events_url":"https://api.github.com/users/ordinaryzelig/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T23:47:32Z","updated_at":"2016-10-03T23:47:32Z","body":"I also think a full example would be very useful. I fanagled my way to finally get it to work, but I get the feeling it was intended to be as easy as it sounds in the README. These are the steps I had to take to get it to work (Using angular-cli with angular 2.0.0-beta.17):\r\n\r\n1.  Install as local npm package.\r\n1. Add to my component file: `import { IMultiSelectOption, IMultiSelectSettings, IMultiSelectTexts } from '../../node_modules/angular-2-dropdown-multiselect/src/multiselect-dropdown';`. (I am new to npm, so I don't know how the importing works, but an import path directly to the file was the only way I could get it to find the files.)\r\n1. in `node_modules/angular-2-dropdown-multiselect/src/multiselect-dropdown.ts`, add `export` in front of `class MultiSelectSearchFilter` so it can be imported in my module file in next step.\r\n1. Add to my module file: `import { MultiselectDropdown, MultiSelectSearchFilter } from '../../node_modules/angular-2-dropdown-multiselect/src/multiselect-dropdown';` Note the README says `MultiselectDropdownModule`, but I think it's a typo and should be `MultiselectDropdown` ([PR](https://github.com/softsimon/angular-2-dropdown-multiselect/issues/14)).\r\n1. Add `MultiselectDropdown` and `MultiSelectSearchFilter` to @NgModule declarations.\r\n\r\nAfter copy/pasting examples into my template, it worked.\r\n\r\nAgain, I'm new to angular2, so please correct these observations if they are wrong:\r\n\r\n- The import path is somehow not recognized.\r\n- The `searchFilter` pipe needed to be manually imported to be used."}}
{"actor":{"display_login":"ordinaryzelig"}}