mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
compat(datepicker): add mat compatible selectors (#6389)
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user