Skip to content
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

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

devversion
Copy link
Member

@devversion devversion commented Sep 28, 2017

  • Adds the 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 the validate-decorators TSLint rule is not a solution right now. There are too many components/directives that shouldn't specify an exportAs. @crisbeto we can chat about this.

Fixes #7361

@devversion devversion added the in progress This issue is currently in progress label Sep 28, 2017
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 28, 2017
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@crisbeto crisbeto left a 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?

@devversion
Copy link
Member Author

@jelbourn @josephperrott Updated the PR and included some more components/directives

@devversion devversion added pr: needs review and removed in progress This issue is currently in progress labels Sep 29, 2017
@@ -49,6 +49,7 @@ export class TemplatePortalDirective extends TemplatePortal<any> {
*/
@Directive({
selector: '[cdkPortalHost], [portalHost]',
exportAs: 'cdkPortalHost, portalHost',
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense. Updated it

Copy link
Member

@josephperrott josephperrott left a 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

@@ -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',
Copy link
Member

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

Copy link
Member Author

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
@josephperrott josephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Oct 4, 2017
@kara kara merged commit 31e9775 into angular:master Oct 4, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create exportAs aliasing for all Components/Directives to allow for template referencing
6 participants