Skip to content

Commit

Permalink
Remove AngularPlugin code from master and direct to new repo and angu…
Browse files Browse the repository at this point in the history
…larplugin-legacy branch (#1607)
  • Loading branch information
MSNev authored Jul 9, 2021
1 parent 4120dbe commit 16a4284
Show file tree
Hide file tree
Showing 21 changed files with 5 additions and 741 deletions.
16 changes: 0 additions & 16 deletions extensions/applicationinsights-angularplugin-js/.editorconfig

This file was deleted.

46 changes: 0 additions & 46 deletions extensions/applicationinsights-angularplugin-js/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions extensions/applicationinsights-angularplugin-js/.npmignore

This file was deleted.

21 changes: 0 additions & 21 deletions extensions/applicationinsights-angularplugin-js/LICENSE

This file was deleted.

79 changes: 5 additions & 74 deletions extensions/applicationinsights-angularplugin-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,81 +14,12 @@

*******************

[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-analytics-js.svg)]()
### Where is the source code for the previous version

Angular Plugin for the Application Insights Javascript SDK, enables the following:
For historical purposes the previous code for the angular plugin has been archived in the [angularplugin-legacy branch to review all previous code and documentation](https://github.com/microsoft/ApplicationInsights-JS/tree/angularplugin-legacy/extensions/applicationinsights-angularplugin-js) branch.

> ***Note:*** Angular plugin is NOT es3 compatible
No further changes are scheduled or expected, any and all changes will occur in the [new repo](https://github.com/microsoft/applicationinsights-angularplugin-js) only.

- Tracking of router changes

Angular Plugin for the Application Insights Javascript SDK

## Getting Started

Install npm package:

```bash
npm install @microsoft/applicationinsights-angularplugin-js
```

## Basic Usage

Set up an instance of Application Insights in the entry component in your app:
```js
import { Component } from '@angular/core';
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
import { AngularPlugin } from '@microsoft/applicationinsights-angularplugin-js';
import { Router } from '@angular/router';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor(
private router: Router
){
var angularPlugin = new AngularPlugin();
const appInsights = new ApplicationInsights({ config: {
instrumentationKey: 'YOUR_INSTRUMENTATION_KEY_GOES_HERE',
extensions: [angularPlugin],
extensionConfig: {
[angularPlugin.identifier]: { router: this.router }
}
} });
appInsights.loadAppInsights();
}
}

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

### Note

Angular plugin is using newer version of typescript, make sure to build and test before you create a pull request.
Navigate to the root folder of Angular plugin, under /extensions/applicationinsights-angularplugin-js:
```
npm install
npm run build
npm run test
```

## License

[MIT](LICENSE)
### Links

- [v2.5.10 Readme](https://github.com/microsoft/ApplicationInsights-JS/blob/angularplugin-legacy/extensions/applicationinsights-angularplugin-js/README.md)
48 changes: 0 additions & 48 deletions extensions/applicationinsights-angularplugin-js/angular.json

This file was deleted.

56 changes: 0 additions & 56 deletions extensions/applicationinsights-angularplugin-js/package.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 16a4284

Please sign in to comment.