BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<form *ngFor="let country of Countrylist"> <div class="form-group"> <input type="text" ngControl="ID" [(ngModel)]="ID"> <button (click)="sendValues(ID)">Search</button> <label>Market Name</label> <input ngControl="MName" [(ngModel)]="country.MName"> <label>Market Code</label> <input ngControl="MCode" [(ngModel)]="country.MCode"> </div> </form>
sendValues(ID) { this._httpService.Searchcode(ID) .subscribe(response => { this.resmessage = response; }); }
Searchcode(ID) { var header = new Headers(); header.append('Content-type', 'application/json'); return this._http.get("http://uraxapiservicepoc2test.azurewebsites.net/api/market/1",{headers:header}) .map((response:Response)=>response.json()); }; }
<input name="uniqueid" type="text" ngControl="ID" [(ngModel)]="ID">
<button (click)="sendValues(ID)">Search</button>
<form *ngFor="let country of Countrylist">
<div class="form-group">
<label>Market Name</label>
<input name="name" ngControl="MName" [(ngModel)]="country.MName">
<label>Market Code</label>
<input name="code" ngControl="MCode" [(ngModel)]="country.MCode">
</div>
</form> |
import { Component, ViewEncapsulation } from '@angular/core';
import { searchService } from './service';
. . .
export class AppComponent {
. . .
sendValues(ID) {
this._httpService.Searchcode(ID)
.subscribe(response => {
this.Countrylist = response;
});
}
} |
Searchcode(ID) {
var header = new Headers();
header.append('Content-type', 'application/json');
return this._http.get("http://uraxapiservicepoc2test.azurewebsites.net/api/market/" + ID, { headers: header })
.map((response: Response) => response.json());
};
|