docs: explain library secondary entrypoints#67891
docs: explain library secondary entrypoints#67891weedorflow wants to merge 3 commits intoangular:mainfrom
Conversation
alan-agius4
left a comment
There was a problem hiding this comment.
What a secondary entry-point is, is explained in https://angular.dev/tools/libraries/angular-package-format#entrypoints-and-code-splitting. Over here it should probably explain how to create one instead.
|
Thanks for the review! I updated the 'Secondary entrypoints' section to focus on how to create a secondary entrypoint (example directory layout + ng-package.json + src/public-api.ts), rather than explaining what it is. Could you please take another look? |
Rename the section to 'Creating secondary entrypoints' and restructure as a numbered 5-step guide covering: 1. directory and file layout 2. ng-package.json configuration 3. exporting symbols from public-api.ts 4. building with ng build 5. importing from the entrypoint in consuming apps The previous version described the structure but did not walk through the full creation process end-to-end. This addresses review feedback requesting actionable creation steps rather than a conceptual overview.
|
Thanks for the review, @alan-agius4! I've updated the section based on your feedback. The content now focuses on how to create a secondary entrypoint rather than explaining the concept (which is already covered in the APF docs). The revised section includes:
Please let me know if this direction is better or if further adjustments are needed. |
Summary
public-api.tsCloses #58676