feat(core): make ngprobe tokens pluggable
This commit is contained in:

committed by
Vikram Subramanian

parent
947f9c3f56
commit
f48142e679
16
modules/@angular/router/ng_probe_token.ts
Normal file
16
modules/@angular/router/ng_probe_token.ts
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {NgProbeToken} from '@angular/platform-browser';
|
||||
import {Router} from './src/router';
|
||||
|
||||
export const ROUTER_NG_PROBE_PROVIDER = {
|
||||
provide: NgProbeToken,
|
||||
multi: true,
|
||||
useValue: new NgProbeToken('router', Router)
|
||||
};
|
Reference in New Issue
Block a user