Skip to main content

Tour of Heroes

Directives

A directive is a marker on a HTML tag that tells Angular to run or reference some JavaScript code.

  • This is how we bind the behavior from HTML to JS

Expressions

  • Allow to insert dynamic values into HTML

Controllers

  • Controllers are where we define our app's behavior by defining functions and values.

Two-way binding

[(ngModel)]is Angular's two-way data binding syntax.

The *ngFor is Angular's repeater directive. It repeats the host element for each element in a list.

This is an example of Angular's event binding syntax.

  • Angular Framework not a library
  • React is a library
  • Opinionated
  • Open-source
  • Typescript used
  • User RxJS internally