Skip to content

Commit e3f5e63

Browse files
committed
refactor(cdk/platform): switch to service decorator
Switches all injectables to use the new `@Service` decorator.
1 parent b0bb079 commit e3f5e63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cdk/platform/platform.ts

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

9-
import {inject, Injectable, PLATFORM_ID} from '@angular/core';
9+
import {inject, Service, PLATFORM_ID} from '@angular/core';
1010
import {isPlatformBrowser} from '@angular/common';
1111

1212
// Whether the current platform supports the V8 Break Iterator. The V8 check
@@ -28,7 +28,7 @@ try {
2828
* Service to detect the current platform by comparing the userAgent strings and
2929
* checking browser-specific global properties.
3030
*/
31-
@Injectable({providedIn: 'root'})
31+
@Service()
3232
export class Platform {
3333
private _platformId = inject(PLATFORM_ID);
3434

0 commit comments

Comments
 (0)