compat(datepicker): add mat compatible selectors (#6389)

This commit is contained in:
Andrew Seguin
2017-08-15 14:51:10 -07:00
committed by GitHub
parent 1536c6878e
commit 7e11ba84f9
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export class MdCalendarCell {
*/
@Component({
moduleId: module.id,
selector: '[md-calendar-body]',
selector: '[md-calendar-body], [mat-calendar-body]',
templateUrl: 'calendar-body.html',
styleUrls: ['calendar-body.css'],
host: {
+1 -1
View File
@@ -47,7 +47,7 @@ import {Subscription} from 'rxjs/Subscription';
*/
@Component({
moduleId: module.id,
selector: 'md-calendar',
selector: 'md-calendar, mat-calendar',
templateUrl: 'calendar.html',
styleUrls: ['calendar.css'],
host: {
+1 -1
View File
@@ -79,7 +79,7 @@ export const MD_DATEPICKER_SCROLL_STRATEGY_PROVIDER = {
*/
@Component({
moduleId: module.id,
selector: 'md-datepicker-content',
selector: 'md-datepicker-content, mat-datepicker-content',
templateUrl: 'datepicker-content.html',
styleUrls: ['datepicker-content.css'],
host: {
+1 -1
View File
@@ -29,7 +29,7 @@ import {MD_DATE_FORMATS, MdDateFormats} from '../core/datetime/date-formats';
*/
@Component({
moduleId: module.id,
selector: 'md-year-view',
selector: 'md-year-view, mat-year-view',
templateUrl: 'year-view.html',
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,