Connect your Angular 2+ client-side to Microsofts Application Insights with this easy-to-use Module.
1/28 - npm library & usage information coming soon!
Install & save the library to your package.json:
$ npm i -S @markpieszak/ngx-application-insights
and then add the library to your Angular Root AppModule
:
// Import the Application Insights library
import { ApplicationInsightsModule } from '@markpieszak/ngx-application-insights';
@NgModule({
imports: [
// ... your imports
// Add the Module to your imports
ApplicationInsightsModule.forRoot({
appID: 'Your-Application-Insights-ID',
appName: '[OPTIONAL] App name for Events'
})
],
// ... providers / etc
})
export class YourRootModule { }
To generate all *.js
, *.js.map
and *.d.ts
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
MIT © Mark Pieszak