Add Optional Properties in Angular to TypeScript Interfaces

Sam Julien
InstructorSam Julien
Share this video with your friends

Social Share Links

Send Tweet

Interfaces let us add strong typing to data, but also give us flexibility in the shape of our data by allowing optional properties. This especially comes in handy when computing additional properties on the frontend. In this video, we'll walk through adding an optional property to the habit interface and then computing that property in the habit list component.