xplat
xplat copied to clipboard
when generating services, there's no option for base class
ng generate @nstudio/schematics:service beef --platforms=ionic,web,nativescript
generates services in web, ionic, nativescript, but has no option for creating a base class in libs/core/services this would be useful, but in the meantime the workaround is to make the base class manually and make each platform extend it.
@vance good feature request 👍 It would be consistent to allow this. I've been considering turning off base class generation by default (right now it's on by default) however it's a rather more advanced usage as it requires developers to understand inheritance better. So if I introduce this, base class generation may only be turned on via the flag (instead of currently turning it off if you don't want it).