Skip to content

Make the selection model injectable and add an overlaps method - #17766

Merged
mmalerba merged 2 commits into
angular:date-selection-modelfrom
xlou978:date-selection-model
Nov 21, 2019
Merged

mmalerba merged 2 commits into
angular:date-selection-modelfrom
xlou978:date-selection-model

Conversation

@xlou978

@xlou978 xlou978 commented Nov 21, 2019

Copy link
Copy Markdown
Contributor

Added overlaps method to MatDateSelectionModel.
We didn't copy the contains() method, since it doesn't seem like it's used.

* Adds a date selection model

* Adds a date selection model
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 21, 2019
@xlou978
xlou978 force-pushed the date-selection-model branch 2 times, most recently from c35acb1 to 5007110 Compare November 21, 2019 02:08

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, just 1 nit

this._date = date;
this._valueChangesSubject.next();
}
/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: newline before

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@xlou978
xlou978 force-pushed the date-selection-model branch from 5007110 to 0a0ea04 Compare November 21, 2019 19:31
@mmalerba
mmalerba merged commit 47e1b01 into angular:date-selection-model Nov 21, 2019
@mmalerba mmalerba changed the title Date selection model Nov 21, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Dec 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

3 participants