TIL, 2021-09-27 - Pipes, Interfaces, `ApplicationRef`
- Interfaces: There is no easy way to unit test an interface or if an object implements an interface cleanly. Reference
- Interfaces only exist at compile-time. They don’t exist at runtime.
console.log(Object.getOwnPropertyNames(Pipe.prototype));=> This will show all the methods of a class. Reference
Dynamically access methods of a class: Reference
- You can’t push error message
- Can call a method post-pipe transform lol.
dayjshas to match the right
ApplicationRef- used to trigger change detection in a Service.
tap - this is literally just a side effect, then pass the thing after. Can do pipe(count()) to see how...