Creating a new injector re-initializes services and providers within its modules. If those services or providers rely on being singletons (as colorPickerService does), this produces unexpected behavior.
Creating a new injector re-initializes services and providers within its modules. If those services or providers rely on being singletons (as colorPickerService does), this produces unexpected behavior.