{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/11111","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/11111/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/11111/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/11111/events","html_url":"https://github.com/driftyco/ionic/issues/11111","id":220181164,"number":11111,"title":"Popover does not work for NgModules, ionic3 and lazy-loading IonicPage","user":{"login":"mburger81","id":3778892,"avatar_url":"https://avatars3.githubusercontent.com/u/3778892?v=3","gravatar_id":"","url":"https://api.github.com/users/mburger81","html_url":"https://github.com/mburger81","followers_url":"https://api.github.com/users/mburger81/followers","following_url":"https://api.github.com/users/mburger81/following{/other_user}","gists_url":"https://api.github.com/users/mburger81/gists{/gist_id}","starred_url":"https://api.github.com/users/mburger81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mburger81/subscriptions","organizations_url":"https://api.github.com/users/mburger81/orgs","repos_url":"https://api.github.com/users/mburger81/repos","events_url":"https://api.github.com/users/mburger81/events{/privacy}","received_events_url":"https://api.github.com/users/mburger81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-04-07T10:58:14Z","updated_at":"2017-05-03T05:40:16Z","closed_at":"2017-04-07T13:20:49Z","body":"**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x**\r\n[ ] **2.x**\r\n[x] **3.x**\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/\r\n\r\n**Current behavior:**\r\nWe have a simple ionic3 app with lazyloading and IonicPage, we want to load a PopoverPage but this is not working. I get this error:\r\n`view-controller.js:570 PopoverCmp ionViewPreLoad error: No component factory found for PopoverPage. Did you add it to @NgModule.entryComponents?`\r\nI don't know if this is a inoic3 or a problem with lazyloading or perhapse I'm doing something wronk :smile: \r\n\r\n\r\n**Expected behavior:**\r\nIt should work :smile: \r\n\r\n\r\n**Related code:**\r\n\r\n```\r\n@NgModule({\r\n    imports: [ IonicModule, IonicPageModule.forChild(HomePage) ],\r\n    declarations: [ HomePage, PopoverPage ],\r\n    entryComponents: [\r\n        HomePage, PopoverPage\r\n    ]\r\n})\r\nexport class HomePageModule { }\r\n\r\n\r\nimport { Component } from '@angular/core';\r\nimport { NavController, IonicPage, PopoverController } from 'ionic-angular';\r\n\r\n@IonicPage()\r\n@Component({\r\n  templateUrl: 'home.html'\r\n})\r\nexport class HomePage {\r\n\r\n  constructor(public popoverCtrl: PopoverController) {}\r\n\r\n   presentPopover(ev) {\r\n       let popover = this.popoverCtrl.create(PopoverPage);\r\n       popover.present();\r\n  }\r\n}\r\n\r\n\r\n@Component({\r\n  template: `\r\n    <ion-list>\r\n            <button ion-item>A</button>\r\n            <button ion-item>B</button>\r\n            <button ion-item>C</button>\r\n        </ion-list>\r\n  `\r\n})\r\nexport class PopoverPage {\r\n  constructor() {}\r\n}\r\n```\r\n\r\n\r\n**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):\r\n\r\n```\r\nCordova CLI: 6.5.0 \r\n    Ionic Framework Version: 3.0.1\r\n    Ionic CLI Version: 3.0.0-beta.5\r\n    ios-deploy version: Not installed\r\n    ios-sim version: Not installed\r\n    OS: Linux 4.8\r\n    Node Version: v6.10.2\r\n    Xcode version: Not installed\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/298827143","html_url":"https://github.com/driftyco/ionic/issues/11111#issuecomment-298827143","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/11111","id":298827143,"user":{"login":"mburger81","id":3778892,"avatar_url":"https://avatars3.githubusercontent.com/u/3778892?v=3","gravatar_id":"","url":"https://api.github.com/users/mburger81","html_url":"https://github.com/mburger81","followers_url":"https://api.github.com/users/mburger81/followers","following_url":"https://api.github.com/users/mburger81/following{/other_user}","gists_url":"https://api.github.com/users/mburger81/gists{/gist_id}","starred_url":"https://api.github.com/users/mburger81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mburger81/subscriptions","organizations_url":"https://api.github.com/users/mburger81/orgs","repos_url":"https://api.github.com/users/mburger81/repos","events_url":"https://api.github.com/users/mburger81/events{/privacy}","received_events_url":"https://api.github.com/users/mburger81/received_events","type":"User","site_admin":false},"created_at":"2017-05-03T05:40:16Z","updated_at":"2017-05-03T05:40:16Z","body":"@ctc1995 It depends what do you intend with resolved. As described in this issue by Dan\r\n\r\n> Put the Popover page in it's own NgModule and give it an @IonicPage decorator. It'll work. It is sort of confusing since a popover isn't a page. We are going to address this in a future release.\r\n> \r\n> Thanks,\r\n> Dan\r\n\r\nThis for now is the solution, I don't think this is changing from the past."}}
{"actor":{"display_login":"mburger81"}}