Skip to content

refactor(OpaqueToken): change deprecated import #11916

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

Merged
merged 6 commits into from
Oct 6, 2017

Conversation

danielsogl
Copy link
Contributor

@danielsogl danielsogl commented Jun 4, 2017

Short description of what this resolves:

From the Angular 4 Beta 5 Changelog

OpaqueToken is now deprecated, use InjectionToken<T> instead.

Related to: #12813

Changes proposed in this pull request:

  • Change OpaqueToken import to InjectionToken
  • Change new OpaqueToken('') to new InjectionToken<any>('')

Ionic Version: 1.x / 2.x / 3.x
3.x

@danielsogl danielsogl changed the title refactor(OpaqueToken): ready for Angular 4.2 refactor(OpaqueToken): Angular 4 breaking changes Jun 4, 2017
@danielsogl danielsogl changed the title refactor(OpaqueToken): Angular 4 breaking changes refactor(OpaqueToken): change deprecated import Jun 4, 2017
@manucorporat
Copy link
Contributor

@danielsogl the PR does not pass "gulp validate"

@manucorporat
Copy link
Contributor

cc @danbucholtz

@manucorporat manucorporat requested a review from danbucholtz June 8, 2017 10:36
@danielsogl
Copy link
Contributor Author

danielsogl commented Jun 8, 2017

@manucorporat I will take a look. Changing types from string to any should fix it.
After running gulp e2e.prod with <any> then <string> worked well

@danielsogl
Copy link
Contributor Author

@manucorporat Any news? We changed this in our production Angular applications without any problems.

@danielsogl
Copy link
Contributor Author

@danbucholtz Notes from the last Angular 5 Beta 6

core: OpaqueToken has been removed as it was deprecated since v4. Use InjectionToken instead.

@danbucholtz
Copy link
Contributor

@danielsogl,

Thanks!

Thanks,
Dan

@danielsogl danielsogl mentioned this pull request Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants