bl-api-rest-core v0.0.3
ApiRestCore
This library was generated with Angular CLI version 7.2.0.
Code scaffolding
Run ng generate component component-name --project api-rest-core
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project api-rest-core
.
Note: Don't forget to add
--project api-rest-core
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build api-rest-core
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build api-rest-core
, go to the dist folder cd dist/api-rest-core
and run npm publish
.
Running unit tests
Run ng test api-rest-core
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Descripción
El objetivo de esta librería es crear un conjunto de utilidades que nos facilite la creación de peticiones a una API REST. Nos ayudará en la construcción automática de las urls y en los parámetros que hay que enviar
Uso
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
ApiRestCoreModule.forRoot(environment)
],
providers: [
CompanyService,
],
bootstrap: [AppComponent]
})
export class AppModule { }