Ich habe diese POST-Daten in meinem Winkel 2 Anwendung:POST (http Service) Winkel 2
postServices(property) {
let body = JSON.stringify(property);
let headers = new Headers({'Content-Type': 'application/json'});
let options = new RequestOptions({ headers:headers });
return this._http.post(this._url, body, options)
.map(res => res.json());
}
Und in meiner Vorlage habe ich auf diese Schaltfläche:
<button *ngIf="!!service_rec.servicecontrolled"
[style.background-color]="service_rec.controlled == 'true' ? 'green' :'orange'"
class="btn btn-warning">
{{ service_rec.servicecontrolled | json | toOnOff }}
</button>
Und wie i Veranstaltung hinzufügen auf (click)=""
in meiner Vorlage mit diesem http-Service?