-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
fix(): add exportAs to missing components #7392
Conversation
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
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.
Add a requirement for exportAs
to the tslint.json?
c6280a5
to
0838828
Compare
@jelbourn @josephperrott Updated the PR and included some more components/directives |
src/cdk/portal/portal-directives.ts
Outdated
@@ -49,6 +49,7 @@ export class TemplatePortalDirective extends TemplatePortal<any> { | |||
*/ | |||
@Directive({ | |||
selector: '[cdkPortalHost], [portalHost]', | |||
exportAs: 'cdkPortalHost, portalHost', |
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 believe the intention is to remove [portalHost]
eventually right? If that is the case, should we not export as portalHost
?
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.
Makes sense. Updated it
0838828
to
aded123
Compare
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.
One last deprecation question, then LGTM
src/lib/form-field/form-field.ts
Outdated
@@ -53,6 +53,7 @@ let nextUniqueId = 0; | |||
moduleId: module.id, | |||
// TODO(mmalerba): the input-container selectors and classes are deprecated and will be removed. | |||
selector: 'mat-input-container, mat-form-field', | |||
exportAs: 'matFormField, matInputContainer', |
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.
Since <mat-input-container>
is being deprecated, should we not include it in exportAs
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.
Makes sense. Removed it
* Adds the `exportAs` option to the missing components inside of Angular Material Fixes angular#7361
aded123
to
9e7692e
Compare
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. |
exportAs
option to the missing components inside of Angular Material@jelbourn @josephperrott A few components/directives have been skipped because they were not added to the list in #7361. e.g. the
MdStepper
or basically all the CDK directives of the table/stepper.Note: Adding the
exportAs
to thevalidate-decorators
TSLint rule is not a solution right now. There are too many components/directives that shouldn't specify anexportAs
. @crisbeto we can chat about this.Fixes #7361