-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from b3nab/master
Fix issue #111 and fix generation of sdk different from ng2web
- Loading branch information
Showing
7 changed files
with
49 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,43 @@ | ||
// this import should be first in order to load some required settings (like globals and reflect-metadata) | ||
import { platformNativeScriptDynamic, NativeScriptModule } from "nativescript-angular/platform"; | ||
import { NgModule } from "@angular/core"; | ||
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; | ||
import { NativeScriptModule } from "nativescript-angular/nativescript.module"; | ||
import { AppRoutingModule } from "./app.routing"; | ||
import { AppComponent } from "./app.component"; | ||
|
||
// Loopback NativeScript SDK Module | ||
import { SDKNativeModule } from './shared/sdk/index'; | ||
|
||
import { ItemService } from "./item/item.service"; | ||
import { ItemsComponent } from "./item/items.component"; | ||
import { ItemDetailComponent } from "./item/item-detail.component"; | ||
|
||
// Uncomment and add to NgModule imports if you need to use two-way binding | ||
// import { NativeScriptFormsModule } from "nativescript-angular/forms"; | ||
|
||
// Uncomment and add to NgModule imports if you need to use the HTTP wrapper | ||
// import { NativeScriptHttpModule } from "nativescript-angular/http"; | ||
|
||
@NgModule({ | ||
declarations: [AppComponent], | ||
bootstrap: [AppComponent], | ||
bootstrap: [ | ||
AppComponent | ||
], | ||
imports: [ | ||
NativeScriptModule, | ||
SDKNativeModule.forRoot() | ||
SDKNativeModule.forRoot(), | ||
AppRoutingModule | ||
], | ||
declarations: [ | ||
AppComponent, | ||
ItemsComponent, | ||
ItemDetailComponent | ||
], | ||
providers: [ | ||
ItemService | ||
], | ||
schemas: [ | ||
NO_ERRORS_SCHEMA | ||
] | ||
}) | ||
class AppComponentModule {} | ||
|
||
platformNativeScriptDynamic().bootstrapModule(AppComponentModule); | ||
/* | ||
Pass your application module to the bootstrapModule function located in main.ts to start your app | ||
*/ | ||
export class AppModule { } |