ng-q-and-a
v0.1.1
Published
## Usage **Add the following in your html** ``` <lib-ng-q-and-a [persistencyURLForGetRequest]="persistencyURLForGetRequest" [persistencyURLForAddRequest]="persistencyURLForAddRequest" [persistencyURLForUpdateRequest]="per
Downloads
11
Readme
Questions And Answers
Usage
Add the following in your html
<lib-ng-q-and-a [persistencyURLForGetRequest]="persistencyURLForGetRequest"
[persistencyURLForAddRequest]="persistencyURLForAddRequest"
[persistencyURLForUpdateRequest]="persistencyURLForUpdateRequest">
</lib-ng-q-and-a>
Add the following instance attribute in your ...component.ts
public baseURL = 'http://localhost:3000';
public persistencyURLForGetRequest = `${this.baseURL}/getAsset`;
public persistencyURLForAddRequest = `${this.baseURL}/addAsset`;
public persistencyURLForUpdateRequest = `${this.baseURL}/updateAsset/asset`;
Add the following in your app.module.ts
imports: [
NgQAndAModule