Encountering an error while attempting to compile my code using Angular 7.2.0 and TypeScript version 3.2.2:
Error TS1005: ',' expected.**…
The issue seems to be arising from the line where I am trying to define a const
object.
addAppareil(name: string status: string) {
const appareilObject = {
id: 0,
name: '',
status: ''
};
}
I've tried multiple approaches but have been unsuccessful in resolving the error, and haven't found any solutions online that match my specific problem.