Angular module wraps abp javascript API as angular services.
Перейти к файлу
Musa Demir 30d0f480eb update angular version 2022-01-17 12:50:59 +03:00
projects/abp-ng2-module resolves https://github.com/aspnetboilerplate/aspnetboilerplate/issues/6259: Upgraded to Angular 12 2021-10-04 16:31:45 +03:00
.editorconfig created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
.gitignore created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
README.MD updated readme file 2020-03-24 13:12:22 +03:00
angular.json created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
package.json update angular version 2022-01-17 12:50:59 +03:00
tsconfig.json created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
tslint.json created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
typings.d.ts created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
yarn.lock update angular version 2022-01-17 12:50:59 +03:00

README.MD

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:

$ npm install abp-ng2-module --save

Development

To generate all *.js, *.js.map and *.d.ts files:

$ ng build abp-ng2-module --prod

AbpHttpInterceptor

In order to use AbpHttpInterceptor in your module, first import it and AbpHttpInterceptor into your module like below;

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;

imports: [
    ///other imports
],
providers: [
    ///other providers
    { provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
]

License

MIT