-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Adds a date selection model #17363
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
Adds a date selection model #17363
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.
You'll need to run bazel run //tools/public_api_guard:material/core.d.ts_api.accept
to mark that the API changes in this PR are intentional
import {Subject} from 'rxjs'; | ||
|
||
export abstract class MatDateSelectionModel<D> { | ||
valueChangesSubject = new Subject<void>(); |
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.
This should be private and we still need the valueChanges
Observable
for the public API. Just when you're calling .complete()
and .next()
those methods only exist on the Subject
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 it's a private property, I won't be able to call this._valueChangesSubject in the derived classes.
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 sorry, then you can make it protected
, the important thing is its not part of the public API
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.
Done.
My local tests all passed, not sure why the tests here are failing :-( |
I'm pretty sure that failure is just a flake, restarting it |
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 - good to go once the tests are green
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. |
No description provided.