Browse Source

feat: remove optionsFactory from options token file

pull/4377/head
Arman Ozak 6 years ago
parent
commit
0d7f7f2c19
  1. 9
      npm/ng-packs/packages/account/src/lib/tokens/options.token.ts

9
npm/ng-packs/packages/account/src/lib/tokens/options.token.ts

@ -1,11 +1,4 @@
import { InjectionToken } from '@angular/core';
import { Options } from '../models/options';
export function optionsFactory(options: Options) {
return {
redirectUrl: '/',
...options,
};
}
export const ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');
export const ACCOUNT_OPTIONS = new InjectionToken<Options>('ACCOUNT_OPTIONS');

Loading…
Cancel
Save