Skip to content

Lesson 20 (Angular Lesson 3)

Sally Steuterman edited this page Jul 27, 2020 · 2 revisions

Lesson 20: Angular Part 3

In the prep work this week (Angular Lesson 3), the students learned:

  1. An alternate syntax for one-way data binding in Angular.
  2. Attribute directives alter the behavior and appearance of HTML elements.
  3. Multiple attribute directives can be applied to one host element.
  4. How to use data-binding to change the style or css class property of an element:
    1. [class.warning]="boolean"
    2. [style.color]="colorVariableName"
  5. How to use data-binding to disable buttons and inputs (e.g. <input [disabled]="boolean"/>).

Large Group Time (Instructor Notes)

Announcements

  1. Congratulations! You made it through unit 1! How do you feel about what you have accomplished so far?
  2. Graded assignment #6 is due before the next class.
  3. Check with your class Candidate Engagement Manager for any other announcements.

Topics That Require More Attention

  1. Q & A as needed for the prep-work exercises.
  2. 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, the component.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.
  3. Dynamic style changes.
    1. Must combine data-binding with an event handler.
  4. Relate components to functions - they should be small, accomplish only one simple task, and be usable in many different projects.
  5. Recognize that Angular does a LOT more than what we covered in the last 3 chapters.
  6. Studio intro.

Studio (TF Notes)

  1. Celebrate the last studio of unit 1 with your team!
  2. Finish strong for your students. Do the prep work if you are struggling with Angular yourself!
  3. Make sure your students begin in the studio-3 branch of the mission planner repository.
  4. 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.
Clone this wiki locally