Skip to content

Commit 0c1c7ee

Browse files
ADjenkovsis0k0
authored andcommitted
refactor(platform): Use new Angular APIs
- import platformCoreDynamic from @angular/platform-browser-dynamic - import INTERNAL_BROWSER_PLATFORM_PROVIDERS (COMPILER_PROVIDERS) from @angular/platform-browser
1 parent 9b83687 commit 0c1c7ee

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

nativescript-angular/platform.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,24 @@ import {
99
import {
1010
ElementSchemaRegistry,
1111
ResourceLoader,
12-
COMPILER_PROVIDERS,
13-
platformCoreDynamic
1412
} from "@angular/compiler";
1513

14+
import {
15+
ɵplatformCoreDynamic as platformCoreDynamic
16+
} from "@angular/platform-browser-dynamic";
17+
18+
import {
19+
ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS
20+
} from "@angular/platform-browser";
21+
1622
import {
1723
COMPILER_OPTIONS,
1824
PlatformRef,
1925
InjectionToken,
2026
ViewEncapsulation,
2127
createPlatformFactory,
22-
MissingTranslationStrategy
28+
MissingTranslationStrategy,
29+
StaticProvider,
2330
} from "@angular/core";
2431

2532
// Work around a TS bug requiring an imports of
@@ -39,7 +46,7 @@ import { NSFileSystem } from "./file-system/ns-file-system";
3946
import { FileSystemResourceLoader } from "./resource-loader";
4047

4148
export const NS_COMPILER_PROVIDERS = [
42-
COMPILER_PROVIDERS,
49+
INTERNAL_BROWSER_PLATFORM_PROVIDERS,
4350
{
4451
provide: COMPILER_OPTIONS,
4552
useValue: {

0 commit comments

Comments
 (0)