Angular module wraps abp javascript API as angular services.
Перейти к файлу
Alper Ebicoglu f7383b7ba6
Deleted debugger
fixes aspnetzero/aspnet-zero-core#87
2018-02-28 08:17:48 +03:00
src Deleted debugger 2018-02-28 08:17:48 +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 fixed #14 removed abpHttp and implemented abpHttpInterceptor 2018-02-13 13:24:45 +03:00
index.ts #2: changed module structure to build with ngc 2017-03-30 13:53:14 +03:00
package-lock.json fixed #14 removed abpHttp and implemented abpHttpInterceptor 2018-02-13 13:24:45 +03:00
package.json updated version to 2.0 2018-02-13 13:36:01 +03:00
rollup.config.js added rollup.config.js to project 2017-07-24 13:40:04 +03:00
tsconfig.json Increase the path configuration 2018-02-22 09:22:29 +08:00
tslint.json Added abp module and services. 2017-01-02 14:38:12 +03:00

README.MD

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 into your module like below;

import { AbpHttpInterceptor } from '@abp/abpHttpInterceptor';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

then, add it to your module providers like below;

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

License

MIT