Angular module wraps abp javascript API as angular services.
Перейти к файлу
İsmail ÇAĞDAŞ 4acd3b6cf1 Update packages and increase version number 2024-07-23 13:50:32 +03:00
projects/abp-ng2-module Update packages and increase version number 2024-07-23 13:50:32 +03:00
.editorconfig created a new package structure and upgraded to Angular 9 2020-03-24 13:06:20 +03:00
.gitignore ignore /projects/abp-ng2-module/node_modules 2023-06-15 10:46:34 +03:00
README.MD updated readme file 2020-03-24 13:12:22 +03:00
angular.json increased angular version 2022-01-17 13:08:56 +03:00
package.json Update packages and increase version number 2024-07-23 13:50:32 +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 ignore /projects/abp-ng2-module/node_modules 2023-06-15 10:46:34 +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