ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

RC.0 Upgrade Docs error?

Open richardshergold opened this issue 10 years ago • 4 comments

The upgrade docs say that you need to remove imports of your services (injectables) from your Components (point 9 in the docs) but I don't think you should - I think they have to be imported there too don't they ?

richardshergold avatar Sep 29 '16 15:09 richardshergold

Ahh yep, you are correct. They still have to be imported and injected in the constructor of your component, but they should not be in a providers array on that component. Fixing

jgw96 avatar Sep 29 '16 15:09 jgw96

fixed with https://github.com/driftyco/ionic/commit/3671f3023bdf2a23d624076d5ddc343d6bc244a0

jgw96 avatar Sep 29 '16 15:09 jgw96

cool !

numerized avatar Sep 29 '16 16:09 numerized

Ok let me untherstand, The import is necessary for all of them. May be that @richardshergold was saying that services (injectables) have also to be put in the providers array because i remark that in ionic 2.1.13, providers keyword is recognised as a Component property.

stchoukeu avatar Nov 26 '16 13:11 stchoukeu