File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,20 @@ $ npm i -S @markpieszak/ng-application-insights
36
36
Now add ApplicationInsightsModule to your Angular Root ` AppModule ` :
37
37
38
38
``` typescript
39
- // Import the Application Insights module and the service provider
39
+ // 1) Import the Application Insights module and the service provider
40
40
import { ApplicationInsightsModule , AppInsightsService } from ' @markpieszak/ng-application-insights' ;
41
41
42
42
@NgModule ({
43
43
imports: [
44
- // ... your imports
45
-
46
- // Add the Module to your imports
44
+ // 2) Add the Module to your imports
47
45
ApplicationInsightsModule .forRoot ({
48
46
instrumentationKey: ' Your-Application-Insights-instrumentationKey'
49
47
})
50
48
],
51
- // ... providers / etc
52
- providers: [ ... , AppInsightsService ],
49
+ providers: [
50
+ // 3) Add AppInsightsService to your providers list
51
+ AppInsightsService
52
+ ]
53
53
})
54
54
export class YourRootModule { }
55
55
```
You can’t perform that action at this time.
0 commit comments