Lesson 101
Data Binding
This Lesson’s Focus
- To display data on the webpage
At CoderGirl
Do On Your Own
Reading
https://www.datchley.name/es6-promises/
Workshop
- Add a few more fields in the component class.
- Anniversary/hire date
- Job Title
- Work Organizations
- Add data for the new the fields.
- Fill in data for the above
- Bind to them in the template.
- Add the job title after the employee’s name.
- Add the hire date after Days Worked
- Add the work organizations under the days until next vacation
- “Bonus” activities:
- Have the “Days Worked” update based on the hire date.
- Set a date for the next vacation and have the days count down