Migrate to Angular-Token 7.x
1. Install new NPM package
npm uninstall angular2-token
npm install angular-token2. Change imports
Before:
import {
Angular2TokenService,
Angular2TokenModule,
Angular2TokenOptions
...
} from 'angular2-token';After:
3. Change from Service import to Module import
Before:
After:
4. Update '.signIn()', '.register()' and '.resetPassword()' to use 'login' rather than 'email'.
Before:
After:
5. Use regular HttpClient calls
Before:
After:
Last updated
Was this helpful?