-
Notifications
You must be signed in to change notification settings - Fork 6
Lesson 20 (Angular Lesson 3)
Courtney Frey edited this page Apr 14, 2022
·
2 revisions
- An alternate syntax for one-way data binding in Angular.
- Attribute directives alter the behavior and appearance of HTML elements.
- Multiple attribute directives can be applied to one host element.
- How to use data-binding to change the style or css class property of an element:
[class.warning]="boolean"
[style.color]="colorVariableName"
- How to use data-binding to disable buttons and inputs (e.g.
<input [disabled]="boolean"/>
).
- Check with your class Candidate Engagement Manager for any other announcements.
- Congratulations! You made it through unit 1! How do you feel about what you have accomplished so far?
- Graded assignment #6 is due before the next class.
- Welcome to Days 30 - 35!
- Graded Assignment 6 due by end of Day 34
- ALL Unit 1 assignments due by end of Day 35
-
Day 30:
- Lesson 20
-
Day 31-33:
- Introduce and work on Graded Assignment 6
-
Day 34:
- Recap Unit 1: topics covered, any questions, etc
- Setup for Unit 2: download/install new IDEs, access to Canvas, preview of Unit 2
- Can also be work day if needed
-
Day 35:
- ALL Unit 1 graded assignments are due by the end of this day
- This is an built in flex day. Can use for work time or Recap/Unit 2 setup.
- Q & A as needed for the prep-work exercises.
- Review (and provide a diagram) of how one-way data binding works. Note how this structure sets up a cycle between the variable defined in the
component.ts
file, thecomponent.html
file which displays that data, and the function call from the HTML file to the TS file that changes the value of the variable. - Dynamic style changes.
- Must combine data-binding with an event handler.
- Relate components to functions - they should be small, accomplish only one simple task, and be usable in many different projects.
- Recognize that Angular does a LOT more than what we covered in the last 3 chapters.
- Studio intro.
- Celebrate the last studio of unit 1 with your team!
- Finish strong for your students. Do the prep work if you are struggling with Angular yourself!
- Make sure your students begin in the
studio-3
branch of themission planner
repository. - Students need to include logical
&&
or||
in order to enable/disable the cargo buttons as described in the instructions. Be ready to coach them on how to add these to the conditionals in the[disabled]
binding.