You can create a new workspace with separated projects inside
ng new appName --createApplication=false
This command will create empty workspace. Then you can create two separated apps and share code between them.
ng g application customersApp
and ng g application staffApp
Now you will have projects
folder in your workspace and you can run the applications separately.
ng serve customersApp --port 4200
or ng serve staffApp --port 4201
You can put the shared code into angular library
ng g library sharedCode
It will add path to tsconfig.json
Then you will be able to use modules and other exported stuff in your apps
You can also check: angular 6 – best practice of sharing common code between projects
The shared code is there explained well.
2
solved Separate Angular apps for customers and staff