Skip to content

Commit 448523b

Browse files
devversionandrewseguin
authored andcommitted
refactor: fix missing abstract directive for date-selection-model
We recently fixed all missing abstract directive decorators in the components repo. Unfortunately though, the PR was not based on top of the datepicker that landed while the PR was waiting for merge. This means that master currently fails, and this commit fixes the lint failure.
1 parent 505db7b commit 448523b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/material/datepicker/date-selection-model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {FactoryProvider, Injectable, Optional, SkipSelf, OnDestroy} from '@angular/core';
9+
import {FactoryProvider, Injectable, Optional, SkipSelf, OnDestroy, Directive} from '@angular/core';
1010
import {DateAdapter} from '@angular/material/core';
1111
import {Observable, Subject} from 'rxjs';
1212

@@ -42,6 +42,7 @@ export interface DateSelectionModelChange<S> {
4242
}
4343

4444
/** A selection model containing a date selection. */
45+
@Directive()
4546
export abstract class MatDateSelectionModel<S, D = ExtractDateTypeFromSelection<S>>
4647
implements OnDestroy {
4748
private _selectionChanged = new Subject<DateSelectionModelChange<S>>();

0 commit comments

Comments
 (0)