-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Add NgModules for material #950
Conversation
@@ -12,7 +12,8 @@ export { | |||
export { |
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.
Export a core module from here, or export all sub-modules through this file.
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.
Exported individual modules and added an MdCoreModule
Globally the feel is good. Please address my previous comment. |
RtlModule, | ||
]; | ||
|
||
@NgModule(({ |
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 too many parenthesis here?
template: ` | ||
<md-button-toggle>Yes</md-button-toggle> | ||
` | ||
}) | ||
class StandaloneButtonToggle { } | ||
|
||
const TEST_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.
These are only used once, please inline them.
@@ -122,7 +124,7 @@ function detectChangesForDialogOpen(fixture: ComponentFixture<ComponentWithChild | |||
// Two rounds of change detection are necessary: one to *create* the dialog container, and | |||
// another to cause the lifecycle events of the container to run and load the dialog content. | |||
fixture.detectChanges(); | |||
setTimeout(() => fixture.detectChanges(), 50); | |||
setTimeout(() => fixture.detectChanges(), 150); |
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.
Nit; is this necessary and can we make it async? 150 is really long for a unittest.
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.
Leftover from debugging, reverted.
(and will likely go away when the zone fix is in)
Removed all |
@hansl all comments should be resolved |
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. |
R: @hansl @kara
This PR includes:
directives: [...]
MaterialModule
)inject
is beforefakeAsync
(and probably async), tests do not use the expected zone angular#10503@experimental
yesterday)Provider
syntax