We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0bb079 commit e3f5e63Copy full SHA for e3f5e63
1 file changed
src/cdk/platform/platform.ts
@@ -6,7 +6,7 @@
6
* found in the LICENSE file at https://angular.dev/license
7
*/
8
9
-import {inject, Injectable, PLATFORM_ID} from '@angular/core';
+import {inject, Service, PLATFORM_ID} from '@angular/core';
10
import {isPlatformBrowser} from '@angular/common';
11
12
// Whether the current platform supports the V8 Break Iterator. The V8 check
@@ -28,7 +28,7 @@ try {
28
* Service to detect the current platform by comparing the userAgent strings and
29
* checking browser-specific global properties.
30
31
-@Injectable({providedIn: 'root'})
+@Service()
32
export class Platform {
33
private _platformId = inject(PLATFORM_ID);
34
0 commit comments