xplat icon indicating copy to clipboard operation
xplat copied to clipboard

when generating services, there's no option for base class

Open vance opened this issue 6 years ago • 1 comments

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 avatar Dec 21 '18 06:12 vance

@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).

NathanWalker avatar Jan 07 '19 19:01 NathanWalker