-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material/schematics/navigation): enable routing option #19439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(material/schematics/navigation): enable routing option #19439
Conversation
Relates to PR #19341. |
...igation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template
Outdated
Show resolved
Hide resolved
Hi @Splaktar , |
@@ -92,6 +92,11 @@ | |||
"type": "boolean", | |||
"default": false, | |||
"description": "Specifies if the component is an entry component of declaring module." | |||
}, | |||
"routing": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think that the schematic should be doing this check based on the app module and not provided as an option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this would be the nicest solution. Though that might be overly complicated as we'd need to check the imports of the module.
These checks generally are not reliable as in reality the Angular compiler supports partial evaluation (i.e. module can be specified in a separate file through an exported variable). Surely we could use the static interpreter as in FW update migrations, but that seems out of scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...igation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @jelbourn , |
It would help if it was just |
Let me do it, would be quick anyways. |
Done. |
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. |
Please do not review as of now