feat(core): make ngprobe tokens pluggable

This commit is contained in:
vsavkin
2016-08-10 22:17:20 -07:00
committed by Vikram Subramanian
parent 947f9c3f56
commit f48142e679
4 changed files with 53 additions and 11 deletions

View 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)
};