abp
abp copied to clipboard
Angular - Fixing empty navigation item for a library
Description
Resolves https://github.com/volosoft/volo/issues/19953
Checklist
- [X] I fully tested it as developer / designer and created unit / integration tests
- [X] I documented it (or no need to document or I will create a separate documentation issue)
How to test it?
- You need to create a microservice app and add a microservice through suite
- Delete the generated library that is
apps/angular/projects/<your-service> - Get a build for the schematics package under
npm/ng-packsby runningyarn build:schematics - Go to the
npm/ng-packs/dist/packages/schematicsand runyarn link, then copy the link command given in the output - You need to paste it under
apps/angularof your microservice. Then, run this command to regenerate your serviceyarn ng g @abp/ng.schematics:create-lib --package-name "<your-service>"(Select false for secondary endpoint and override questions. Pick module as a type since the standalone templates are not published yet.) - Once you run the app, you should not see the routing of your service in the navbar since it has no valid page in it.
- Create entities for that specific service. This time, you will need to see the route items in the navbar if you have the necessary permissions.