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
You can't push to git://github.com/daryllxd/dotfiles.git
Use https://github.com/daryllxd/dotfiles.git
url = [email protected]:daryllxd/dotfiles.git => url = [email protected]:daryllxd/dotfiles.git
- Can call a method post-pipe transform lol.
keyvalue
pipe?dayjs
has to match the rightname
.ApplicationRef
- used to trigger change detection in a Service.