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

feat(material): use scoped injectables #10507

Merged
merged 2 commits into from
Mar 21, 2018

Conversation

jelbourn
Copy link
Member

@jelbourn jelbourn commented Mar 20, 2018

Also catches cdk/layout which was missed earlier.

The overlay and the family of components based on it (dialog, snackbar, etc.) can't use the new semantics because they need the most appropriate ComponentFactoryResolver instead of the one that's always at the root.

@jelbourn jelbourn added P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful pr: needs review target: major This PR is targeted for the next major release labels Mar 20, 2018
@jelbourn jelbourn requested review from crisbeto and mmalerba March 20, 2018 21:59
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 20, 2018
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.

LGTM, just one question about the removed module imports.

import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MatCommonModule, MatRippleModule} from '@angular/material/core';
import {MatRadioButton, MatRadioGroup} from './radio';


@NgModule({
imports: [CommonModule, MatRippleModule, MatCommonModule, A11yModule],
Copy link
Member

Choose a reason for hiding this comment

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

Is removing this one intentional? The radio button has a dependency on the focus monitor from a11y.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removing here is okay since radio doesn't use any of the a11y directives. However, this comment made me realize I shouldn't have remove A11yModule from the date picker module. Fixed that.

@jelbourn jelbourn force-pushed the mat-scoped-injectables branch from 2bc4db9 to 0ffe24a Compare March 20, 2018 22:09
@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Mar 20, 2018
@andrewseguin andrewseguin merged commit f7b5d34 into angular:master Mar 21, 2018
@jelbourn jelbourn deleted the mat-scoped-injectables branch April 2, 2018 22:32
@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 8, 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 P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants