Angular module wraps abp javascript API as angular services.
Перейти к файлу
Musa Demir ff557b1d37 Update abpHttpInterceptor.ts 2019-11-28 14:20:32 +03:00
src Update abpHttpInterceptor.ts 2019-11-28 14:20:32 +03:00
.gitignore added rollup.config.js to project 2017-07-24 13:40:04 +03:00
.npmignore Added abp module and services. 2017-01-02 14:38:12 +03:00
.travis.yml Added abp module and services. 2017-01-02 14:38:12 +03:00
BUILD.bat Added build.bat. 2017-07-24 13:42:41 +03:00
LICENSE Initial commit 2017-01-02 13:33:35 +02:00
README.MD Update README.MD 2019-06-10 22:43:18 +03:00
index.ts #2: changed module structure to build with ngc 2017-03-30 13:53:14 +03:00
package.json Merge branch 'master' of https://github.com/aspnetboilerplate/abp-ng2-module 2019-10-22 13:43:05 +03:00
rollup.config.js added rollup.config.js to project 2017-07-24 13:40:04 +03:00
tsconfig.json resolved #26: Upgraded to angular 6 2018-05-08 11:46:01 +03:00
tslint.json Added abp module and services. 2017-01-02 14:38:12 +03:00
yarn.lock Upgrade abp-web-resources to 4.1.0. 2019-10-21 16:07:56 +08: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:

$ npm run build

AbpHttpInterceptor

In order to use AbpHttpInterceptor in your module, first import it and AbpModule 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
    AbpModule
],
providers: [
    ///other providers
    { provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
]

License

MIT