Skip to content

Commit abb7bea

Browse files
committed
refactor(cdk/text-field): switch to service decorator
Switches all injectables to use the new `@Service` decorator.
1 parent 9d43acc commit abb7bea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cdk/text-field/autofill.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
ElementRef,
1313
EventEmitter,
1414
inject,
15-
Injectable,
15+
Service,
1616
NgZone,
1717
OnDestroy,
1818
OnInit,
@@ -46,7 +46,7 @@ const listenerOptions = {passive: true};
4646
* Based on the following blog post:
4747
* https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
4848
*/
49-
@Injectable({providedIn: 'root'})
49+
@Service()
5050
export class AutofillMonitor implements OnDestroy {
5151
private _platform = inject(Platform);
5252
private _ngZone = inject(NgZone);

0 commit comments

Comments
 (0)