angular change detection notes

Was reading some angular change detection related articles trying to understand it. some note. Angular can detect when component data changes, and then automatically re-render the view to reflect that change. NgZone ngZone is an angular verison of zone.js, which patches the browser async calls like user event(click/keyup etc), settimeout/interval, XHR.  It is similar to…

Angular Rxjs Error Handling flow

In Angular 2+, http are all RX based. so the error flow is quite different from what we used to have in angular 1.x’s promise based way. consider the code So the basic flow is if anything exception happened, the error handler function in the catch block will be called first. That function should return an…

dependencies resolve difference between yarn and npm

Today we found an interesting behavior difference between yarn and npm when resolving/placing dependency on node_module folder. It happens when i was help one of my teammates setting up a local debugging server which has a require on Library A. In our package.json, we do not have an explicit declaration on A. We have 2 depedencies B and C both have…