restored readme file
This commit is contained in:
Родитель
4d73018fe5
Коммит
3594ff679a
48
README.MD
48
README.MD
|
@ -1,27 +1,47 @@
|
|||
# AbpNg2Module9
|
||||
# Important
|
||||
|
||||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.7.
|
||||
Issues of this repository are tracked on https://github.com/aspnetboilerplate/aspnetboilerplate. Please create your issues on https://github.com/aspnetboilerplate/aspnetboilerplate/issues.
|
||||
|
||||
## Development server
|
||||
# abp-ng2-module
|
||||
|
||||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
||||
## Installation
|
||||
|
||||
## Code scaffolding
|
||||
To install this library, run:
|
||||
|
||||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
||||
```bash
|
||||
$ npm install abp-ng2-module --save
|
||||
```
|
||||
## Development
|
||||
|
||||
## Build
|
||||
To generate all `*.js`, `*.js.map` and `*.d.ts` files:
|
||||
|
||||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
|
||||
```bash
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## Running unit tests
|
||||
## AbpHttpInterceptor
|
||||
|
||||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
In order to use AbpHttpInterceptor in your module, first import it and AbpModule into your module like below;
|
||||
|
||||
## Running end-to-end tests
|
||||
```ts
|
||||
import { AbpModule } from '@abp/abp.module';
|
||||
import { AbpHttpInterceptor } from '@abp/abpHttpInterceptor';
|
||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
```
|
||||
|
||||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
||||
then, add it to your module providers like below;
|
||||
|
||||
## Further help
|
||||
```ts
|
||||
imports: [
|
||||
///other imports
|
||||
AbpModule
|
||||
],
|
||||
providers: [
|
||||
///other providers
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
|
||||
]
|
||||
```
|
||||
|
||||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
||||
## License
|
||||
|
||||
MIT
|
Загрузка…
Ссылка в новой задаче