Please help out : Hello coders i am trying to display an array using angularjs and type script but their is an error i am not understanding. Please help.

I am learning Angular js an type script
[When i move my cursor to the The Goal that red lined it shows this: Type '{ id: number; name: string; }[]' is missing the following properties from type 'Goal': id, name][1]
Visual studio shows a red line on Goal saying this: Type '{ id: number; name: string; }[]' is missing the following properties from type 'Goal': id, name  
Can any coder show me exactly what to do?


  [1]: https://i.stack.imgur.com/AcHNP.png