fix(@schematics/angular): correct style guide paths for standalone components#31587
Merged
clydin merged 1 commit intoangular:mainfrom Oct 23, 2025
Merged
Conversation
…mponents This commit addresses an issue where the standalone application schematic did not correctly handle the `fileNameStyleGuide: '2016'` option. The `templateUrl` and `styleUrl` properties in the generated `app.component.ts` did not include the `.component` suffix, leading to broken links. The key changes are: - Updates the standalone component template to use the `suffix` variable for `templateUrl` and `styleUrl`, ensuring the correct file paths are generated. - Adds a new test case to verify that the generated component has the correct paths when `fileNameStyleGuide: '2016'` is used.
hybrist
approved these changes
Oct 23, 2025
Member
Author
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit addresses an issue where the standalone application schematic did not correctly handle the
fileNameStyleGuide: '2016'option. ThetemplateUrlandstyleUrlproperties in the generatedapp.component.tsdid not include the.componentsuffix, leading to broken links.The key changes are:
suffixvariable fortemplateUrlandstyleUrl, ensuring the correct file paths are generated.fileNameStyleGuide: '2016'is used.Closes #31581