Angular Flashcards
Modules
Components
directive
data-binding
string interpolation, property binding, event binding, two-way binding
directive (component)
directive (attribute)
ngStyle, ngClass
directive (structural)
ngIf, ngFor
debug code in the browser
chrome debug > sources (tab) > page (sub-tab) > webpack:// > locate the file and code line in question and add a breakpoint. This should be the same directory structure as your code editor.
@Input
A decorator used to inform Angular that a property in that component can get its value from its parent component
@Output
A decorator that marks a property in a child component that allows data to travel from the child to the parent component.
The child component uses the @Output() property to raise an event to notify the parent of the change. To raise an event, an @Output() MUST have the type of EventEmitter, which is a class in @angular/core that you use to emit custom events.