https://github.com/aspnetboilerplate/abp-ng2-module
Angular module wraps abp javascript API as angular services.
https://github.com/aspnetboilerplate/abp-ng2-module
abp angular2
Last synced: over 1 year ago
JSON representation
Angular module wraps abp javascript API as angular services.
- Host: GitHub
- URL: https://github.com/aspnetboilerplate/abp-ng2-module
- Owner: aspnetboilerplate
- Created: 2017-01-02T11:33:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T14:12:31.000Z (over 1 year ago)
- Last Synced: 2025-04-12T14:18:42.332Z (over 1 year ago)
- Topics: abp, angular2
- Language: TypeScript
- Size: 982 KB
- Stars: 58
- Watchers: 18
- Forks: 43
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Important
Issues of this repository are tracked on https://github.com/aspnetboilerplate/aspnetboilerplate. Please create your issues on https://github.com/aspnetboilerplate/aspnetboilerplate/issues.
# abp-ng2-module
## Installation
To install this library, run:
```bash
$ npm install abp-ng2-module --save
```
## Development
To generate all `*.js`, `*.js.map` and `*.d.ts` files:
```bash
$ ng build abp-ng2-module --configuration=production
```
## AbpHttpInterceptor
In order to use AbpHttpInterceptor in your module, first import it and AbpHttpInterceptor into your module like below;
```ts
import { AbpModule } from '@abp/abp.module';
import { AbpHttpInterceptor } from '@abp/abpHttpInterceptor';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
```
then, add it to your module providers like below;
```ts
imports: [
///other imports
],
providers: [
///other providers
{ provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
]
```
## License
MIT