{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/2173","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/2173/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/2173/comments","events_url":"https://api.github.com/repos/angular/material2/issues/2173/events","html_url":"https://github.com/angular/material2/issues/2173","id":194832425,"number":2173,"title":"Usage in other modules","user":{"login":"montella1507","id":10418323,"avatar_url":"https://avatars.githubusercontent.com/u/10418323?v=3","gravatar_id":"","url":"https://api.github.com/users/montella1507","html_url":"https://github.com/montella1507","followers_url":"https://api.github.com/users/montella1507/followers","following_url":"https://api.github.com/users/montella1507/following{/other_user}","gists_url":"https://api.github.com/users/montella1507/gists{/gist_id}","starred_url":"https://api.github.com/users/montella1507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montella1507/subscriptions","organizations_url":"https://api.github.com/users/montella1507/orgs","repos_url":"https://api.github.com/users/montella1507/repos","events_url":"https://api.github.com/users/montella1507/events{/privacy}","received_events_url":"https://api.github.com/users/montella1507/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-11T13:39:39Z","updated_at":"2016-12-12T09:28:04Z","closed_at":null,"body":"#### Bug, feature request, or proposal:\r\nBug?\r\n\r\n#### What is the expected behavior?\r\n1) import Angular 2 material module in ROOT (main/app module) with MaterialModule.forRoot()\r\n2) Use compoments in every module, which is imported in Main/App module\r\n\r\n#### What is the current behavior?\r\nIf i use Material components in another module, it wont find a known element\r\n\r\n#### What are the steps to reproduce?\r\nJust try to use NG2 material component in other module that main / app\r\n\r\n\r\n\r\n#### Which versions of Angular, Material, OS, browsers are affected?\r\nWin 10 x64, Angular-CLI 22-1, Angular 2.2.3\r\n\r\n#### Is there anything else we should know?\r\nIs it correct to rly provide only way to import NG2 module for root? Shall we just import Material module in out \"Shared\" module which is shared in every other module??\r\n\r\nI think this strange behavior ( bug) could be because of changes in angular CLI in latest versions.. (Maybe the custom decorator are stripped?).\r\n\r\nWhat is the correct usage of NG2 material if we have multiple Modules and we wish tu use NG2 material in each of them?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/266380787","html_url":"https://github.com/angular/material2/issues/2173#issuecomment-266380787","issue_url":"https://api.github.com/repos/angular/material2/issues/2173","id":266380787,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T09:28:04Z","updated_at":"2016-12-12T09:28:04Z","body":"`MaterialModule.forRoot()` only once in the root module.\r\nJust `MaterialModule` in all other modules."}}
{"actor":{"display_login":"DzmitryShylovich"}}