I'm dealing with an interface right now
export interface IInterview {
id: number;
title: string;
body: string;
}
When I use console.log(interview)
in my controller, it displays:
Object {title: "I SEE SOMETHING", id: 2, body: "THIS IS SO AWESOME HUEHUEHUEHUE"}
However, when I navigate to my views and try to access {{ interview.body }}
, I encounter an error message that reads:
Cannot read property 'body' of undefined in [ {{ interview.body }}
Furthermore, attempting to display the entire object using {{ interview }}
just outputs [object Object]