Angular + TS
Tour of Heroes Tutorial
- @Component is a decorator function that specifies the Angular metadata for the component.
-
id: number;what doesnumberdo in here? http://www.typescriptlang.org/docs/handbook/advanced-types.html - typescript
:is a type define + value assignment, it can be expanded to: Type = value -
Upper case pipe
{{property | uppercase}} - Could not use ngModel two-way binding
LeetCode
- 275 H-index II binary search with a twist; need to be very careful about conditions and edge cases.