{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/8530","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/8530/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/8530/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/8530/events","html_url":"https://github.com/driftyco/ionic/issues/8530","id":181353283,"number":8530,"title":"Ionic 2 release migration -> provider error","user":{"login":"danielgolub","id":1869601,"avatar_url":"https://avatars.githubusercontent.com/u/1869601?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgolub","html_url":"https://github.com/danielgolub","followers_url":"https://api.github.com/users/danielgolub/followers","following_url":"https://api.github.com/users/danielgolub/following{/other_user}","gists_url":"https://api.github.com/users/danielgolub/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgolub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgolub/subscriptions","organizations_url":"https://api.github.com/users/danielgolub/orgs","repos_url":"https://api.github.com/users/danielgolub/repos","events_url":"https://api.github.com/users/danielgolub/events{/privacy}","received_events_url":"https://api.github.com/users/danielgolub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T08:31:02Z","updated_at":"2016-10-07T11:29:15Z","closed_at":null,"body":"#### Short description of the problem:\r\nWhen I try to create a page component which includes a provider in it, the page is blank and this error is shown: Uncaught Error: Can't resolve all parameters for BackgroundPicturePage: (LoadingController, AlertController, NavController, ?, TranslateService).\r\n\r\nHere are my files:\r\n\r\n_app.module.ts:_\r\n```\r\nimport { User } from '../models/User';\r\n\r\n......\r\n\r\nproviders: [\r\n    User,\r\n],\r\n```\r\n\r\n_background-picture.component.ts:_\r\n```\r\nimport {Component} from '@angular/core';\r\nimport {User} from '../../models/User';\r\n\r\n@Component({\r\n  templateUrl: 'background-picture.html',\r\n})\r\nexport class BackgroundPicturePage {\r\n  constructor(\r\n    public loadingCtrl: LoadingController,\r\n    public alertCtrl: AlertController,\r\n        public nav: NavController,\r\n        public user: User,\r\n        public translate: TranslateService\r\n    ) {\r\n    }\r\n}\r\n```\r\n\r\n_User.ts:_\r\n```\r\nimport {Injectable} from '@angular/core';\r\n\r\n@Injectable()\r\nexport class User {\r\n ... logic ...\r\n}\r\n```\r\n\r\n**Which Ionic Version?** 1.x or 2.x\r\n\r\n2.0 RC0\r\n\r\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\r\n\r\n```\r\nCordova CLI: 6.3.1\r\nGulp version:  CLI version 3.9.1\r\nGulp local:  \r\nIonic Framework Version: 2.0.0-rc.0\r\nIonic CLI Version: 2.1.0\r\nIonic App Lib Version: 2.1.0-beta.1\r\nios-deploy version: Not installed\r\nios-sim version: Not installed\r\nOS: Mac OS X El Capitan\r\nNode Version: v6.3.0\r\nXcode version: Xcode 8.0 Build version 8A218a \r\n```"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/252226476","html_url":"https://github.com/driftyco/ionic/issues/8530#issuecomment-252226476","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/8530","id":252226476,"user":{"login":"danielgolub","id":1869601,"avatar_url":"https://avatars.githubusercontent.com/u/1869601?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgolub","html_url":"https://github.com/danielgolub","followers_url":"https://api.github.com/users/danielgolub/followers","following_url":"https://api.github.com/users/danielgolub/following{/other_user}","gists_url":"https://api.github.com/users/danielgolub/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgolub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgolub/subscriptions","organizations_url":"https://api.github.com/users/danielgolub/orgs","repos_url":"https://api.github.com/users/danielgolub/repos","events_url":"https://api.github.com/users/danielgolub/events{/privacy}","received_events_url":"https://api.github.com/users/danielgolub/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T11:29:15Z","updated_at":"2016-10-07T11:29:15Z","body":"The \"? in the constructor is actually the provider (User). When I try to remove the User provider from the page component, now this error disappears, but another page has the same kind of error (`Uncaught Error: Can't resolve all parameters for LoginPage: (ModalController, AlertController, LoadingController, TranslateService, NavController, ?).`)"}}
{"actor":{"display_login":"danielgolub"}}