Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 52a8c32

Browse files
author
Alexander Vakrilov
authored
Merge pull request #330 from NativeScript/import-reorder
Reorder imports in ng-sample
2 parents 993b3d0 + 8554c8e commit 52a8c32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎ng-sample/app/app.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
//import * as profiling from "./profiling";
66
//profiling.start('application-start');
77

8-
// this import should be first in order to load some required settings (like globals and reflect-metadata)
9-
import { Router } from "@angular/router";
8+
// "nativescript-angular/application" import should be first in order to load some required settings (like globals and reflect-metadata)
109
import { nativeScriptBootstrap, onAfterLivesync, onBeforeLivesync } from "nativescript-angular/application";
10+
import { Router } from "@angular/router";
1111
import { NS_ROUTER_PROVIDERS as NS_ROUTER_PROVIDERS_DEPRECATED } from "nativescript-angular/router-deprecated";
1212
import { NS_ROUTER_PROVIDERS } from "nativescript-angular/router";
1313
import { HTTP_PROVIDERS } from "@angular/http";

‎tests/app/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// this import should be first in order to load some required settings (like globals and reflect-metadata)
1+
// "nativescript-angular/application" import should be first in order to load some required settings (like globals and reflect-metadata)
22
import {nativeScriptBootstrap, bootstrap} from "nativescript-angular/application";
33
import {AppComponent} from "./app.component";
44
import {GestureComponent} from "./snippets/gestures.component";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /