I have just started with Angular2 and I\'ve got an issue I cannot really understand.
I have some mock data created as such:
export const WORKFLOW_DAT
Typescript expects WORKFLOW_DATA
to be Object
here:
.subscribe( WORKFLOW_DATA => {} )
because you told it so:
getWorkflowForEditor(): Observable
But Object
doesn't have testDataArray
property... You should either tell TypeScript that data can have any properties:
getWorkflowForEditor(): Observable
or use
console.log( WORKFLOW_DATA["testDataArray"] );