-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @Inject instead of static get parameters() #6959
Comments
Just noticed that the latest ionic-cli only supports typescript. So this doesn't matter any more. |
@mirkonasato yeah! we took the decision to drop js support, since TS is a superset of JS it's up to developers to use the new features introduced. This way we can concentrate our efforts of documentation, demos and testing. |
@manucorporat good decision 👍 |
@manucorporat, what a shame that you guys took that decision. TypeScript is simply too slow for me, so from the start I decided to use ES6. And, to complete.. the official Angular docs are just poor in terms of ES6 support. |
Ionic 2 starter projects currently uses
static get parameters()
in esnext code as a workaround for the lack of parameter decorators in Babel. See e.g. Adding Pages in the tutorial.Parameters decorators should now work using the babel-plugin-angular2-annotations: see shuhei/babel-plugin-angular2-annotations#19
So it should be possible to write
The text was updated successfully, but these errors were encountered: