Submodule 20.2: Data Binding - Practice

Refactoring the code ...

...Refactoring the code ...

Then create a new file named dishes.ts in the shared folder to export the JavaScript object array of DISHES:

Copy source:

Note the date format. This is a standardized format that is used also in many programming languages which allow us to store the date as a string. We use the Angular pipe to display the date in a more convenientĀ format.