Skip to content

docs(@schematics/angular): correct generated file name examples in name descriptions - #34397

Merged
clydin merged 1 commit into
angular:mainfrom
MeAkib:docs/schematic-name-examples
Oct 19, 2026
Merged

clydin merged 1 commit into
angular:mainfrom
MeAkib:docs/schematic-name-examples

Conversation

@MeAkib

@MeAkib MeAkib commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

The name option descriptions of the directive, service, enum, interface, pipe, guard, interceptor and resolver schematics showed file names that include the type suffix, such as my-directive.directive.ts and my-pipe.pipe.ts. By default, these schematics no longer add the type to the file name, and the pipe, guard, interceptor and resolver schematics use - as the type separator. Update the examples to match the default output.

@angular-robot angular-robot Bot added area: docs Related to the documentation area: @schematics/angular labels Oct 19, 2026
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Oct 19, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the description fields in multiple Angular schematic schema files to provide more accurate examples of generated file names by removing redundant suffixes. I have no feedback to provide as there were no review comments.

…ame` descriptions

The `name` option descriptions of the directive, service, enum, interface, pipe, guard,
interceptor and resolver schematics showed file names that include the type suffix,
such as `my-directive.directive.ts` and `my-pipe.pipe.ts`. By default, these schematics
no longer add the type to the file name, and the pipe, guard, interceptor and resolver
schematics use `-` as the type separator. Update the examples to match the default output.
@alan-agius4
alan-agius4 force-pushed the docs/schematic-name-examples branch from 4c6340a to 8565c50 Compare October 19, 2026 08:42
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels Oct 19, 2026
@clydin
clydin merged commit 452019d into angular:main Oct 19, 2026
40 checks passed
@clydin

clydin commented Oct 19, 2026

Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

@MeAkib
MeAkib deleted the docs/schematic-name-examples branch October 19, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation area: @schematics/angular target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants