File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 27
27
},
28
28
"peerDependencies" : {
29
29
"@angular/router" : " ^5.0.0" ,
30
- "rxjs" : " ^5.0.3 "
30
+ "rxjs" : " ^5.5.5 "
31
31
},
32
32
"devDependencies" : {
33
33
"@angular/cli" : " ^1.4.1" ,
Original file line number Diff line number Diff line change 1
1
import { Injectable , Optional } from '@angular/core' ;
2
2
import { Router , NavigationStart , NavigationEnd } from '@angular/router' ;
3
3
import { AppInsights } from 'applicationinsights-js' ;
4
- import 'rxjs/add/operator/filter' ;
4
+ import { filter } from 'rxjs/operators/filter' ;
5
+
5
6
import IAppInsights = Microsoft . ApplicationInsights . IAppInsights ;
6
7
7
8
export class AppInsightsConfig implements Microsoft . ApplicationInsights . IConfig {
@@ -202,12 +203,16 @@ export class AppInsightsService implements IAppInsights {
202
203
AppInsights . downloadAndSetup ( this . config ) ;
203
204
204
205
if ( ! this . config . overrideTrackPageMetrics ) {
205
- this . router . events . filter ( event => event instanceof NavigationStart )
206
+ this . router . events . pipe (
207
+ filter ( event => event instanceof NavigationStart )
208
+ )
206
209
. subscribe ( ( event : NavigationStart ) => {
207
210
this . startTrackPage ( event . url ) ;
208
211
} ) ;
209
212
210
- this . router . events . filter ( event => event instanceof NavigationEnd )
213
+ this . router . events . pipe (
214
+ filter ( event => event instanceof NavigationEnd )
215
+ )
211
216
. subscribe ( ( event : NavigationEnd ) => {
212
217
this . stopTrackPage ( event . url ) ;
213
218
} ) ;
You can’t perform that action at this time.
0 commit comments