{"action":"created","issue":{"url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/38","repository_url":"https://api.github.com/repos/ceolter/ag-grid-ng2","labels_url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/38/comments","events_url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/38/events","html_url":"https://github.com/ceolter/ag-grid-ng2/issues/38","id":176353373,"number":38,"title":"Multiple grids declare multiple RuntimeComponentModules","user":{"login":"stephanjust","id":8887403,"avatar_url":"https://avatars.githubusercontent.com/u/8887403?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanjust","html_url":"https://github.com/stephanjust","followers_url":"https://api.github.com/users/stephanjust/followers","following_url":"https://api.github.com/users/stephanjust/following{/other_user}","gists_url":"https://api.github.com/users/stephanjust/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanjust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanjust/subscriptions","organizations_url":"https://api.github.com/users/stephanjust/orgs","repos_url":"https://api.github.com/users/stephanjust/repos","events_url":"https://api.github.com/users/stephanjust/events{/privacy}","received_events_url":"https://api.github.com/users/stephanjust/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-12T11:31:27Z","updated_at":"2016-09-13T07:37:43Z","closed_at":null,"body":"I have multiple different grids that all use the Angular2 CellRenderer. The scenario in detail is a page with a grid that acts as an entry page and a routed page that contains tabs whereas each tab contains its own grid. Quickly navigating either between the pages via routing or changing tabs so that a different grid gets rendered results in:\r\n```\r\nError: Uncaught (in promise): Error: Type AngularCellRenderer is part of the declarations of 2 modules: RuntimeComponentModule and RuntimeComponentModule!(…)\r\n```\r\nI'm not sure how you should fix this or what I can do to avoid this, but it seems that RuntimeComponentModule gets recreated and redeclares my CellRenderer while the old one is still valid."},"comment":{"url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/comments/246600348","html_url":"https://github.com/ceolter/ag-grid-ng2/issues/38#issuecomment-246600348","issue_url":"https://api.github.com/repos/ceolter/ag-grid-ng2/issues/38","id":246600348,"user":{"login":"stephanjust","id":8887403,"avatar_url":"https://avatars.githubusercontent.com/u/8887403?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanjust","html_url":"https://github.com/stephanjust","followers_url":"https://api.github.com/users/stephanjust/followers","following_url":"https://api.github.com/users/stephanjust/following{/other_user}","gists_url":"https://api.github.com/users/stephanjust/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanjust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanjust/subscriptions","organizations_url":"https://api.github.com/users/stephanjust/orgs","repos_url":"https://api.github.com/users/stephanjust/repos","events_url":"https://api.github.com/users/stephanjust/events{/privacy}","received_events_url":"https://api.github.com/users/stephanjust/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T07:37:43Z","updated_at":"2016-09-13T07:37:43Z","body":"I assume the problem comes from me also importing the module at other places (and therefore providing it again) as it didn't work properly for me as a global module alone. I think fixing my importing issue could solve this issue with it, but if I may make a suggestion:\r\n\r\nhttps://angular.io/docs/ts/latest/guide/ngmodule.html#!#core-for-root\r\nAngular has a mechanic to only add providers on the root level, namely with the forRoot() method. If your module stops providing AgComponentFactory within providers but uses forRoot() it should solve 'all' problems while still working properly."}}
{"actor":{"display_login":"stephanjust"}}