-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs: schematics #10502
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
docs: schematics #10502
Conversation
guides/schematics.md
Outdated
@@ -0,0 +1,53 @@ | |||
Angular Material comes packaged with Angular CLI schematics to make | |||
creating new components easy. |
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.
Does this make creating Material applications easier? Or just components?
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.
Oh good point, I think it should be applications.
guides/schematics.md
Outdated
|
||
- Ensure project depedencies in `package.json` | ||
- Ensure project depedencies in your app module | ||
- Add Prebuilt or Setup Custom Theme |
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.
Should a note be included on how to choose a prebuilt or custom theme?
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.
It will ask you which and add it when you launch this schematic.
guides/schematics.md
Outdated
### Navigation Schematic | ||
The navigation schematic will create a new component that includes | ||
a toolbar with the app name and the side nav pre-configured to be | ||
responsive. |
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.
responsive based on the Material Breakpoints?
guides/schematics.md
Outdated
responsive. | ||
|
||
``` | ||
ng g @angular/material:material-nav |
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 think it is clearer if you don't use the g
alias, and instead have:
ng generate @angular/material:material-nav
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.
We should also point to this in the getting started guide.
guides/schematics.md
Outdated
|
||
## Install Schematics | ||
Schematics come packaged with Angular Material, so once you have | ||
installed the npm package, they will be available via the Angular CLI. |
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 think you can also do ng add @angular/material
and it will install for you, but we can only test that once it's on npm
@jelbourn @josephperrott - Ready to go. |
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
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. |
Adds simple docs for the schematics