Upon compiling, I encountered the following error:
I am unable to locate where a comma needs to be inserted.
src/app/navbar.component.ts(29,39): error TS1005: ',' expected.
src/app/tache.service.ts(53,53): error TS1005: ',' expected.
Error in navbar.component.ts
add(name: string): void {
name = name.trim();
if (!name) { return; }
this.tacheService.create(name)
.then(tache => {
this.tacheService.insert( tache: Tache); // found at line 29
});
}
Error in service.ts
update(tache: Tache): Promise<Tache> {
tache.stat = 1;
return this.http
.put(this.tachesUrl, JSON.stringify(tache.stat:1), {headers: this.headers}) // found at line 53
.toPromise()
.then(() => tache)
.catch(this.handleError);
}