0.1.1 - Zone.js directive and service
When both the platform and the micro frontend rely on Zone.js to trigger their change detection, then they compete for the microtask empty triggers on the window.Zone object.
To mitigate this problem, the ngx-elements-router now contains a ZoneDirective
and a ZoneEntryService
.
The directive can be applied to the host component in the platform and passes microtask empty events from the platform to the micro frontend.
The service can be applied to the Angular component representing the custom element in the micro frontend and listens for the microtask empty events passed from the platform to trigger a change detection cycle.