From 01a83fc7c93a12dcc92dc6d0c25b9f24bf05dff9 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Fri, 6 Jan 2017 15:38:53 +0200 Subject: [PATCH 1/3] fix: add nativescript-dev-webpack dependency --- package.json | 197 +++++++++++++++++++++++++++------------------------ 1 file changed, 103 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index 9e78a67f..b123756f 100644 --- a/package.json +++ b/package.json @@ -1,98 +1,107 @@ { - "name": "nativescript-sdk-examples-ng", - "description": "NativeScript & Angular 2 SDK Examples", - "author": "Telerik ", - "version": "0.1.0", - "homepage": "https://github.com/NativeScript/nativescript-sdk-examples-ng", - "repository": { - "type": "git", - "url": "https://github.com/NativeScript/nativescript-sdk-examples-ng" + "name": "nativescript-sdk-examples-ng", + "description": "NativeScript & Angular 2 SDK Examples", + "author": "Telerik ", + "version": "0.1.0", + "homepage": "https://github.com/NativeScript/nativescript-sdk-examples-ng", + "repository": { + "type": "git", + "url": "https://github.com/NativeScript/nativescript-sdk-examples-ng" + }, + "bugs": { + "url": "https://github.com/NativeScript/nativescript-sdk-examples-ng/issues" + }, + "keywords": [ + "NativeScript", + "Angular", + "SDK", + "example", + "documentation" + ], + "license": "Apache-2.0", + "nativescript": { + "id": "org.nativescript.nativescriptsdkexamplesng", + "tns-ios": { + "version": "2.4.0" }, - "bugs": { - "url": "https://github.com/NativeScript/nativescript-sdk-examples-ng/issues" - }, - "keywords": [ - "NativeScript", - "Angular", - "SDK", - "example", - "documentation" - ], - "license": "Apache-2.0", - "nativescript": { - "id": "org.nativescript.nativescriptsdkexamplesng", - "tns-ios": { - "version": "2.4.0" - }, - "tns-android": { - "version": "2.4.1" - } - }, - "dependencies": { - "@angular/common": "2.3.1", - "@angular/compiler": "2.3.1", - "@angular/core": "2.3.1", - "@angular/forms": "2.3.1", - "@angular/http": "2.3.1", - "@angular/platform-browser": "2.3.1", - "@angular/platform-browser-dynamic": "2.3.1", - "@angular/router": "3.3.1", - "nativescript-angular": "1.3.0", - "nativescript-camera": "0.0.7", - "nativescript-geolocation": "0.0.14", - "nativescript-googlemaps": "0.0.6", - "nativescript-intl": "~0.0.6", - "nativescript-theme-core": "^1.0.0", - "reflect-metadata": "~0.1.8", - "rxjs": "5.0.0-rc.4", - "tns-core-modules": "2.4.4" - }, - "devDependencies": { - "babel-traverse": "6.11.4", - "babel-types": "6.11.1", - "babylon": "6.8.4", - "codelyzer": "~2.0.0-beta.3", - "fs-extra": "^0.30.0", - "glob": "^7.0.5", - "lazy": "1.0.11", - "markdown-snippet-injector": "^0.2.0", - "nativescript-dev-typescript": "^0.3.2", - "opener": "^1.4.1", - "raw-loader": "~0.5.1", - "rimraf": "^2.5.3", - "tar.gz": "^1.0.5", - "tns-platform-declarations": "^2.4.0", - "tslint": "~4.0.2", - "typescript": "~2.0.3", - "zone.js": "~0.7.2" - }, - "scripts": { - "pretsc": "npm install", - "tsc": "tsc", - "pretslint": "npm run tsc", - "tslint": "tslint -C tsconfig.json --project tslint.json", - "prebuild": "npm run tslint", - "build": "node scripts/build.js", - "postbuild": "npm run inject && npm run archive", - "inject": "mdinject --root=app --docsroot=dist/sdk-examples --sourceext=\".ts|.css|.html\" --snippettitles=\"TypeScript|CSS|HTML\"", - "archive": "node scripts/archive.js", - "prepush-to-github": "npm run build", - "push-to-github": "(cd dist/sdk-examples && rimraf .git && git init && git add -A && git commit -m \"nativescript-sdk-examples build preview\" && git remote add origin git@github.com:NativeScript/nativescript-sdk-examples-preview.git && git push -u --force origin master)", - "preshow-preview": "npm run push-to-github", - "show-preview": "opener https://github.com/NativeScript/nativescript-sdk-examples-preview", - "clean-android": "tns clean-app android", - "clean-ios": "tns clean-app ios", - "prewebpack-android": "npm run clean-android", - "prewebpack-ios": "npm run clean-ios", - "webpack-android": "webpack --config=webpack.android.js --progress", - "webpack-ios": "webpack --config=webpack.ios.js --progress", - "prestart-android-bundle": "npm run webpack-android", - "prestart-ios-bundle": "npm run webpack-ios", - "start-android-bundle": "tns run android --bundle --disable-npm-install", - "start-ios-bundle": "tns run ios --bundle --disable-npm-install", - "prebuild-android-bundle": "npm run webpack-android", - "prebuild-ios-bundle": "npm run webpack-ios", - "build-android-bundle": "tns build android --bundle --disable-npm-install", - "build-ios-bundle": "tns build ios --bundle --disable-npm-install" + "tns-android": { + "version": "2.4.1" } + }, + "dependencies": { + "@angular/common": "2.3.1", + "@angular/compiler": "2.3.1", + "@angular/core": "2.3.1", + "@angular/forms": "2.3.1", + "@angular/http": "2.3.1", + "@angular/platform-browser": "2.3.1", + "@angular/platform-browser-dynamic": "2.3.1", + "@angular/router": "3.3.1", + "nativescript-angular": "1.3.0", + "nativescript-camera": "0.0.7", + "nativescript-geolocation": "0.0.14", + "nativescript-googlemaps": "0.0.6", + "nativescript-intl": "~0.0.6", + "nativescript-theme-core": "^1.0.0", + "reflect-metadata": "~0.1.8", + "rxjs": "5.0.0-rc.4", + "tns-core-modules": "2.4.4" + }, + "devDependencies": { + "@angular/compiler-cli": "2.3.1", + "@ngtools/webpack": "1.2.1", + "babel-traverse": "6.11.4", + "babel-types": "6.11.1", + "babylon": "6.8.4", + "codelyzer": "~2.0.0-beta.3", + "copy-webpack-plugin": "~3.0.1", + "css-loader": "~0.26.0", + "extract-text-webpack-plugin": "~2.0.0-beta.4", + "fs-extra": "^0.30.0", + "glob": "^7.0.5", + "lazy": "1.0.11", + "markdown-snippet-injector": "^0.2.0", + "nativescript-dev-typescript": "^0.3.2", + "nativescript-dev-webpack": "^0.3.0", + "opener": "^1.4.1", + "raw-loader": "~0.5.1", + "resolve-url-loader": "~1.6.0", + "rimraf": "^2.5.3", + "tar.gz": "^1.0.5", + "tns-platform-declarations": "^2.4.0", + "tslint": "~4.0.2", + "typescript": "~2.0.3", + "webpack": "~2.1.0-beta.27", + "webpack-sources": "~0.1.3", + "zone.js": "~0.7.2" + }, + "scripts": { + "pretsc": "npm install", + "tsc": "tsc", + "pretslint": "npm run tsc", + "tslint": "tslint -C tsconfig.json --project tslint.json", + "prebuild": "npm run tslint", + "build": "node scripts/build.js", + "postbuild": "npm run inject && npm run archive", + "inject": "mdinject --root=app --docsroot=dist/sdk-examples --sourceext=\".ts|.css|.html\" --snippettitles=\"TypeScript|CSS|HTML\"", + "archive": "node scripts/archive.js", + "prepush-to-github": "npm run build", + "push-to-github": "(cd dist/sdk-examples && rimraf .git && git init && git add -A && git commit -m \"nativescript-sdk-examples build preview\" && git remote add origin git@github.com:NativeScript/nativescript-sdk-examples-preview.git && git push -u --force origin master)", + "preshow-preview": "npm run push-to-github", + "show-preview": "opener https://github.com/NativeScript/nativescript-sdk-examples-preview", + "clean-android": "tns clean-app android", + "clean-ios": "tns clean-app ios", + "prewebpack-android": "npm run clean-android", + "prewebpack-ios": "npm run clean-ios", + "webpack-android": "webpack --config=webpack.android.js --progress", + "webpack-ios": "webpack --config=webpack.ios.js --progress", + "prestart-android-bundle": "npm run webpack-android", + "prestart-ios-bundle": "npm run webpack-ios", + "start-android-bundle": "tns run android --bundle --disable-npm-install", + "start-ios-bundle": "tns run ios --bundle --disable-npm-install", + "prebuild-android-bundle": "npm run webpack-android", + "prebuild-ios-bundle": "npm run webpack-ios", + "build-android-bundle": "tns build android --bundle --disable-npm-install", + "build-ios-bundle": "tns build ios --bundle --disable-npm-install" + } } From d87b1427323b747ae5504f566ad3a4c70d86b8d5 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Fri, 6 Jan 2017 15:56:52 +0200 Subject: [PATCH 2/3] fix(AoT): remove imports from nativescript-angular/platform This should prevent @angular/compiler from bundling when using webpack and ahead-of-time compilation. --- .../application-settings-examples.module.ts | 2 +- app/application/application-examples.module.ts | 2 +- app/camera/camera-examples.module.ts | 2 +- app/color/color-examples.module.ts | 2 +- .../content-screens/content-screens-examples.module.ts | 2 +- .../dataentry/extended-dataentry-examples.module.ts | 2 +- .../lists-category/extended-listview-examples.module.ts | 2 +- .../userprofile/extended-userprofile-examples.module.ts | 2 +- app/connectivity/connectivity-examples.module.ts | 2 +- app/examples-list.module.ts | 2 +- app/file-system/file-system-examples.module.ts | 2 +- app/fps-meter/fps-meter-examples.module.ts | 2 +- app/http/http-examples.module.ts | 2 +- app/location/location-examples.module.ts | 2 +- app/modal-page/modal-page-examples.module.ts | 2 +- app/platform/platform-examples.module.ts | 2 +- app/routing/routing-examples.module.ts | 2 +- app/timer/timer-examples.module.ts | 2 +- app/trace/trace-examples.module.ts | 2 +- app/ui-category/action-bar/action-bar-examples.module.ts | 2 +- .../activity-indicator/activity-indicator-examples.module.ts | 2 +- app/ui-category/animations/animations-examples.module.ts | 2 +- app/ui-category/button/button-examples.module.ts | 2 +- app/ui-category/date-picker/date-picker-examples.module.ts | 2 +- app/ui-category/dialogs/dialogs-examples.module.ts | 2 +- .../formatted-string/formated-string-examples.module.ts | 2 +- app/ui-category/gestures/gestures-examples.module.ts | 2 +- app/ui-category/htmlview/htmlview-examples.module.ts | 2 +- app/ui-category/image/image-examples.module.ts | 2 +- app/ui-category/label/label-examples.module.ts | 2 +- app/ui-category/layouts/layouts-examples.module.ts | 2 +- app/ui-category/listpicker/listpicker-examples.module.ts | 2 +- app/ui-category/listview/listview-examples.module.ts | 2 +- app/ui-category/ng-directives/ng-directives-examples.module.ts | 2 +- app/ui-category/progress/progress-examples.module.ts | 2 +- app/ui-category/scroll-view/scroll-view-examples.module.ts | 2 +- app/ui-category/search-bar/search-bar-examples.module.ts | 2 +- app/ui-category/segmented-bar/segmented-bar-examples.module.ts | 2 +- app/ui-category/slider/slider-examples.module.ts | 2 +- app/ui-category/style/style-examples.module.ts | 2 +- app/ui-category/switch/switch-examples.module.ts | 2 +- app/ui-category/tab-view/tab-view-examples.module.ts | 2 +- app/ui-category/text-field/text-field-examples.module.ts | 2 +- app/ui-category/text-view/text-view-examples.module.ts | 2 +- app/ui-category/time-picker/time-picker-examples.module.ts | 2 +- app/ui-category/web-view/web-view-examples.module.ts | 2 +- 46 files changed, 46 insertions(+), 46 deletions(-) diff --git a/app/application-settings/application-settings-examples.module.ts b/app/application-settings/application-settings-examples.module.ts index 10c69df7..495dce3d 100644 --- a/app/application-settings/application-settings-examples.module.ts +++ b/app/application-settings/application-settings-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ApplicationSettingsExamplesComponent } from "./application-settings-examples.component"; import { ValuesExampleComponent } from "./values/values.component"; import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module"; diff --git a/app/application/application-examples.module.ts b/app/application/application-examples.module.ts index a3fa0470..34c8fc71 100644 --- a/app/application/application-examples.module.ts +++ b/app/application/application-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ApplicationExamplesComponent } from "./application-examples.component"; import { AppCheckingTargetExampleComponent } from "./app-checking-target/app-checking-target.component"; import { AppUsingAndroidExampleComponent } from "./app-using-android-specifics/app-using-android-specifics.component"; diff --git a/app/camera/camera-examples.module.ts b/app/camera/camera-examples.module.ts index e4530d49..a5906321 100644 --- a/app/camera/camera-examples.module.ts +++ b/app/camera/camera-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { CameraExamplesComponent } from "./camera-examples.component"; import { UsingCameraExampleComponent } from "./using-camera/using-camera.component"; import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module"; diff --git a/app/color/color-examples.module.ts b/app/color/color-examples.module.ts index 93797fb8..e69df9b9 100644 --- a/app/color/color-examples.module.ts +++ b/app/color/color-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { ColorExamplesComponent } from "./color-examples.component"; import { CreatingColorsExampleComponent } from "./creating-colors/creating-colors.component"; diff --git a/app/common-screens-category/content-screens/content-screens-examples.module.ts b/app/common-screens-category/content-screens/content-screens-examples.module.ts index 069e3b75..592694fb 100644 --- a/app/common-screens-category/content-screens/content-screens-examples.module.ts +++ b/app/common-screens-category/content-screens/content-screens-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ContentScreensExamplesComponent } from "./content-screens-examples.component"; import { ContentScrollablePageExampleComponent } from "./content-scrollable/content-scrollable-example.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/common-screens-category/dataentry/extended-dataentry-examples.module.ts b/app/common-screens-category/dataentry/extended-dataentry-examples.module.ts index 444f3069..19798db4 100644 --- a/app/common-screens-category/dataentry/extended-dataentry-examples.module.ts +++ b/app/common-screens-category/dataentry/extended-dataentry-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ExtendedDataEntryExamplesComponent } from "./extended-dataentry-examples.component"; import { SignupDataEntryExampleComponent } from "./dataentry-signup/dataentry-signup.component"; import { SocialLoginDataEntryExampleComponent } from "./dataentry-sociallogin/dataentry-sociallogin.component"; diff --git a/app/common-screens-category/lists-category/extended-listview-examples.module.ts b/app/common-screens-category/lists-category/extended-listview-examples.module.ts index ce9d79fc..8d0e2711 100644 --- a/app/common-screens-category/lists-category/extended-listview-examples.module.ts +++ b/app/common-screens-category/lists-category/extended-listview-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ExtendedListViewExamplesComponent } from "./extended-listview-examples.component"; import { CardsListViewExampleComponent } from "./cards/cards-listview.component"; import { HeaderWithMapExampleComponent } from "./header-with-map/header-with-map.component"; diff --git a/app/common-screens-category/userprofile/extended-userprofile-examples.module.ts b/app/common-screens-category/userprofile/extended-userprofile-examples.module.ts index 668c687d..9312e6f5 100644 --- a/app/common-screens-category/userprofile/extended-userprofile-examples.module.ts +++ b/app/common-screens-category/userprofile/extended-userprofile-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ExtendedUserProfileExamplesComponent } from "./extended-userprofile-examples.component"; import { UserFeedExampleComponent } from "./user-feed/user-feed.component"; import { UserFeedImagesExampleComponent } from "./user-feed-images/user-feed-images.component"; diff --git a/app/connectivity/connectivity-examples.module.ts b/app/connectivity/connectivity-examples.module.ts index f61988b2..fc4cde1a 100644 --- a/app/connectivity/connectivity-examples.module.ts +++ b/app/connectivity/connectivity-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ConnectivityExamplesComponent } from "./connectivity-examples.component"; import { UsingConnectivityExampleComponent } from "./using-connectivity/using-connectivity.component"; import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module"; diff --git a/app/examples-list.module.ts b/app/examples-list.module.ts index 95468506..d4cfb805 100644 --- a/app/examples-list.module.ts +++ b/app/examples-list.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ExamplesListComponent } from "./examples-list.component"; import { TitleAndNavButtonModule } from "./directives/title-and-nav-button.module"; diff --git a/app/file-system/file-system-examples.module.ts b/app/file-system/file-system-examples.module.ts index f2d2828a..15fbb1f5 100644 --- a/app/file-system/file-system-examples.module.ts +++ b/app/file-system/file-system-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { FileSystemExamplesComponent } from "./file-system-examples.component"; import { CreateExampleComponent } from "./create/create.component"; import { DeleteExampleComponent } from "./delete/delete.component"; diff --git a/app/fps-meter/fps-meter-examples.module.ts b/app/fps-meter/fps-meter-examples.module.ts index c4332252..4e649d3e 100644 --- a/app/fps-meter/fps-meter-examples.module.ts +++ b/app/fps-meter/fps-meter-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { FpsExamplesComponent } from "./fps-meter-examples.component"; diff --git a/app/http/http-examples.module.ts b/app/http/http-examples.module.ts index 817c4e52..9e4d9f0e 100644 --- a/app/http/http-examples.module.ts +++ b/app/http/http-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { NativeScriptHttpModule } from "nativescript-angular/http"; diff --git a/app/location/location-examples.module.ts b/app/location/location-examples.module.ts index 6c05c602..44e557af 100644 --- a/app/location/location-examples.module.ts +++ b/app/location/location-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { LocationExamplesComponent } from "./location-examples.component"; import { BasicLocationExampleComponent } from "./basic-location-example/basic-location-example"; import { LocationMonitoringExampleComponent } from "./location-monitoring-example/location-monitoring-example"; diff --git a/app/modal-page/modal-page-examples.module.ts b/app/modal-page/modal-page-examples.module.ts index 464d6322..1488c85c 100644 --- a/app/modal-page/modal-page-examples.module.ts +++ b/app/modal-page/modal-page-examples.module.ts @@ -1,7 +1,7 @@ // tslint:disable:max-line-length import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ModalPageExamplesComponent } from "./modal-page-examples.component"; import { SampleModalPageModuleExampleComponent } from "./sample-modal-page-module-example/sample-modal-page-module-example"; import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module"; diff --git a/app/platform/platform-examples.module.ts b/app/platform/platform-examples.module.ts index a5151657..bbd54536 100644 --- a/app/platform/platform-examples.module.ts +++ b/app/platform/platform-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { PlatformExamplesComponent } from "./platform-examples.component"; import { PlatformModuleExampleComponent } from "./platform-module-example/platform-module-example"; import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module"; diff --git a/app/routing/routing-examples.module.ts b/app/routing/routing-examples.module.ts index 109fc68b..444e7280 100644 --- a/app/routing/routing-examples.module.ts +++ b/app/routing/routing-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { RoutingExamplesComponent } from "./routing-examples.component"; diff --git a/app/timer/timer-examples.module.ts b/app/timer/timer-examples.module.ts index fd46b128..0361dd04 100644 --- a/app/timer/timer-examples.module.ts +++ b/app/timer/timer-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { TimerExamplesComponent } from "./timer-examples.component"; diff --git a/app/trace/trace-examples.module.ts b/app/trace/trace-examples.module.ts index 08138c07..a63ed335 100644 --- a/app/trace/trace-examples.module.ts +++ b/app/trace/trace-examples.module.ts @@ -1,7 +1,7 @@ // tslint:disable:max-line-length import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { TraceExamplesComponent } from "./trace-examples.component"; diff --git a/app/ui-category/action-bar/action-bar-examples.module.ts b/app/ui-category/action-bar/action-bar-examples.module.ts index 200550bf..97962b5b 100644 --- a/app/ui-category/action-bar/action-bar-examples.module.ts +++ b/app/ui-category/action-bar/action-bar-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ActionBarExamplesComponent } from "./action-bar-examples.component"; import { ActionItemsComponent } from "./action-items/action-items.component"; import { NavigationButtonComponent } from "./navigation-button/navigation-button.component"; diff --git a/app/ui-category/activity-indicator/activity-indicator-examples.module.ts b/app/ui-category/activity-indicator/activity-indicator-examples.module.ts index 00ece992..0b5ff2a2 100644 --- a/app/ui-category/activity-indicator/activity-indicator-examples.module.ts +++ b/app/ui-category/activity-indicator/activity-indicator-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ActivityIndicatorExamplesComponent } from "./activity-indicator-examples.component"; import { SettingBusyComponent } from "./setting-busy/setting-busy.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/animations/animations-examples.module.ts b/app/ui-category/animations/animations-examples.module.ts index 96882626..9ec8c1e4 100644 --- a/app/ui-category/animations/animations-examples.module.ts +++ b/app/ui-category/animations/animations-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { AnimationsExamplesComponent } from "./animations-examples.component"; import { AnimatingPropertiesComponent } from "./animating-properties/animating-properties.component"; import { ChainingAnimationsComponent } from "./chaining-animations/chaining-animations.component"; diff --git a/app/ui-category/button/button-examples.module.ts b/app/ui-category/button/button-examples.module.ts index eb0a887f..e96822ec 100644 --- a/app/ui-category/button/button-examples.module.ts +++ b/app/ui-category/button/button-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ButtonExamplesComponent } from "./button-examples.component"; import { ButtonBindingTextComponent } from "./binding-text/binding-text.component"; import { ButtonTapEventComponent } from "./tap-event/tap-event.component"; diff --git a/app/ui-category/date-picker/date-picker-examples.module.ts b/app/ui-category/date-picker/date-picker-examples.module.ts index c9a1b05f..629f4a21 100644 --- a/app/ui-category/date-picker/date-picker-examples.module.ts +++ b/app/ui-category/date-picker/date-picker-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { DatePickerExamplesComponent } from "./date-picker-examples.component"; import { ConfigureDatePickerComponent } from "./configure-date-picker/configure-date-picker.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/dialogs/dialogs-examples.module.ts b/app/ui-category/dialogs/dialogs-examples.module.ts index 2981b172..24048f3c 100644 --- a/app/ui-category/dialogs/dialogs-examples.module.ts +++ b/app/ui-category/dialogs/dialogs-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { DialogsExamplesComponent } from "./dialogs-examples.component"; import { ActionDialogComponent } from "./action-dialog/action-dialog.component"; import { AlertDialogComponent } from "./alert-dialog/alert-dialog.component"; diff --git a/app/ui-category/formatted-string/formated-string-examples.module.ts b/app/ui-category/formatted-string/formated-string-examples.module.ts index 00e75cfe..0f738e81 100644 --- a/app/ui-category/formatted-string/formated-string-examples.module.ts +++ b/app/ui-category/formatted-string/formated-string-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { FormattedStringExamplesComponent } from "./formated-string-examples.component"; import { CreateFormattedStringComponent } from "./create-formatted-string/create-formatted-string.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/gestures/gestures-examples.module.ts b/app/ui-category/gestures/gestures-examples.module.ts index 2c36db3e..d75f8089 100644 --- a/app/ui-category/gestures/gestures-examples.module.ts +++ b/app/ui-category/gestures/gestures-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { GesturesExamplesComponent } from "./gestures-examples.component"; import { DoubleTapExampleComponent } from "./double-tap/double-tap.component"; import { LongPressExampleComponent } from "./long-press/long-press.component"; diff --git a/app/ui-category/htmlview/htmlview-examples.module.ts b/app/ui-category/htmlview/htmlview-examples.module.ts index 15611a0a..a01dedd8 100644 --- a/app/ui-category/htmlview/htmlview-examples.module.ts +++ b/app/ui-category/htmlview/htmlview-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { HtmlViewExamplesComponent } from "./htmlview-examples.component"; import { CreatingHtmlViewExampleComponent } from "./creating-htmlview/creating-htmlview.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/image/image-examples.module.ts b/app/ui-category/image/image-examples.module.ts index d1b7f2e3..768a7e20 100644 --- a/app/ui-category/image/image-examples.module.ts +++ b/app/ui-category/image/image-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ImageExamplesComponent } from "./image-examples.component"; import { CreatingImageExampleComponent } from "./creating-image/creating-image.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/label/label-examples.module.ts b/app/ui-category/label/label-examples.module.ts index c1574519..b5354c5b 100644 --- a/app/ui-category/label/label-examples.module.ts +++ b/app/ui-category/label/label-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { LabelExamplesComponent } from "./label-examples.component"; import { CreatingLabelComponent } from "./creating-label/creating-label.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/layouts/layouts-examples.module.ts b/app/ui-category/layouts/layouts-examples.module.ts index 81ebda5a..eb915425 100644 --- a/app/ui-category/layouts/layouts-examples.module.ts +++ b/app/ui-category/layouts/layouts-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { LayoutsExamplesComponent } from "./layouts-examples.component"; import { AbsoluteLayoutComponent } from "./absolute-layout/absolute-layout.component"; import { DockLayoutComponent } from "./dock-layout/dock-layout.component"; diff --git a/app/ui-category/listpicker/listpicker-examples.module.ts b/app/ui-category/listpicker/listpicker-examples.module.ts index 611b74a3..29fe4913 100644 --- a/app/ui-category/listpicker/listpicker-examples.module.ts +++ b/app/ui-category/listpicker/listpicker-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { ListPickerExamplesComponent } from "./listpicker-examples.component"; import { CreatingListPickerComponent } from "./creating-listpicker/creating-listpicker.component"; diff --git a/app/ui-category/listview/listview-examples.module.ts b/app/ui-category/listview/listview-examples.module.ts index 3918bdc9..abad9645 100644 --- a/app/ui-category/listview/listview-examples.module.ts +++ b/app/ui-category/listview/listview-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ListViewExamplesComponent } from "./listview-examples.component"; import { CreatingListViewComponent } from "./creating-listview/creating-listview.component"; import { CustomizingListViewComponent } from "./customizing-listview/customizing-listview.component"; diff --git a/app/ui-category/ng-directives/ng-directives-examples.module.ts b/app/ui-category/ng-directives/ng-directives-examples.module.ts index 3153fcc6..b4003b7f 100644 --- a/app/ui-category/ng-directives/ng-directives-examples.module.ts +++ b/app/ui-category/ng-directives/ng-directives-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { NgDirectivesExamplesComponent } from "./ng-directives-examples.component"; import { diff --git a/app/ui-category/progress/progress-examples.module.ts b/app/ui-category/progress/progress-examples.module.ts index 0898d00b..31efd507 100644 --- a/app/ui-category/progress/progress-examples.module.ts +++ b/app/ui-category/progress/progress-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ProgressExamplesComponent } from "./progress-examples.component"; import { CreatingProgressComponent } from "./creating-progress/creating-progress.component"; import { SettingProgressComponent } from "./setting-progress/setting-progress.component"; diff --git a/app/ui-category/scroll-view/scroll-view-examples.module.ts b/app/ui-category/scroll-view/scroll-view-examples.module.ts index fbe42d34..4b5f9480 100644 --- a/app/ui-category/scroll-view/scroll-view-examples.module.ts +++ b/app/ui-category/scroll-view/scroll-view-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { ScrollViewExamplesComponent } from "./scroll-view-examples.component"; import { ScrollViewHorizontalComponent } from "./horizontal/scroll-view-horizontal.component"; import { ScrollViewVerticalComponent } from "./vertical/scroll-view-vertical.component"; diff --git a/app/ui-category/search-bar/search-bar-examples.module.ts b/app/ui-category/search-bar/search-bar-examples.module.ts index f0eab930..98bcc1f3 100644 --- a/app/ui-category/search-bar/search-bar-examples.module.ts +++ b/app/ui-category/search-bar/search-bar-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { SearchBarExamplesComponent } from "./search-bar-examples.component"; import { BasicSearchBarComponent } from "./basic-search-bar/basic-search-bar.component"; import { ClearSearchBarComponent } from "./clear-search-bar/clear-search-bar.component"; diff --git a/app/ui-category/segmented-bar/segmented-bar-examples.module.ts b/app/ui-category/segmented-bar/segmented-bar-examples.module.ts index b5e643c1..97b8d564 100644 --- a/app/ui-category/segmented-bar/segmented-bar-examples.module.ts +++ b/app/ui-category/segmented-bar/segmented-bar-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { SegmentedBarExamplesComponent } from "./segmented-bar-examples.component"; import { BasicSegmentedBarComponent } from "./basic-segmented-bar/basic-segmented-bar.component"; import { SegmentedBarViewsComponent } from "./segmented-bar-views/segmented-bar-views.component"; diff --git a/app/ui-category/slider/slider-examples.module.ts b/app/ui-category/slider/slider-examples.module.ts index 23223f06..eac3dc37 100644 --- a/app/ui-category/slider/slider-examples.module.ts +++ b/app/ui-category/slider/slider-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { SliderExamplesComponent } from "./slider-examples.component"; import { BasicSliderComponent } from "./basic-slider/basic-slider.component"; import { SliderAccessValueComponent } from "./slider-access-value-code/slider-access-value.component"; diff --git a/app/ui-category/style/style-examples.module.ts b/app/ui-category/style/style-examples.module.ts index a07bf60b..71238d17 100644 --- a/app/ui-category/style/style-examples.module.ts +++ b/app/ui-category/style/style-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { StyleExamplesComponent } from "./style-examples.component"; import { ApplyStyleCodeComponent } from "./apply-style-via-code/apply-style-code.component"; import { StyleCSSFileComponent } from "./style-css-file/style-css-file.component"; diff --git a/app/ui-category/switch/switch-examples.module.ts b/app/ui-category/switch/switch-examples.module.ts index 7502cfef..1ae14fb6 100644 --- a/app/ui-category/switch/switch-examples.module.ts +++ b/app/ui-category/switch/switch-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { SwitchExamplesComponent } from "./switch-examples.component"; import { BasicSwitchComponent } from "./basic-switch/basic-switch.component"; import { DisableSwitchComponent } from "./disable-switch/disable-switch.component"; diff --git a/app/ui-category/tab-view/tab-view-examples.module.ts b/app/ui-category/tab-view/tab-view-examples.module.ts index e58558e0..9df16173 100644 --- a/app/ui-category/tab-view/tab-view-examples.module.ts +++ b/app/ui-category/tab-view/tab-view-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { TabViewExamplesComponent } from "./tab-view-examples.component"; import { BasicTabViewComponent } from "./basic-tab-view/basic-tab-view.component"; import { TabViewItemsComponent } from "./tab-view-items/tab-view-items.component"; diff --git a/app/ui-category/text-field/text-field-examples.module.ts b/app/ui-category/text-field/text-field-examples.module.ts index e270329b..3029cb81 100644 --- a/app/ui-category/text-field/text-field-examples.module.ts +++ b/app/ui-category/text-field/text-field-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { TextFieldExamplesComponent } from "./text-field-examples.component"; import { BasicTextFieldComponent } from "./basic-text-field/basic-text-field.component"; import { TextFieldBindingComponent } from "./text-field-binding/text-field-binding.component"; diff --git a/app/ui-category/text-view/text-view-examples.module.ts b/app/ui-category/text-view/text-view-examples.module.ts index b61d4983..15743edc 100644 --- a/app/ui-category/text-view/text-view-examples.module.ts +++ b/app/ui-category/text-view/text-view-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { TextViewExamplesComponent } from "./text-view-examples.component"; import { BasicTextViewComponent } from "./basic-text-view/basic-text-view.component"; diff --git a/app/ui-category/time-picker/time-picker-examples.module.ts b/app/ui-category/time-picker/time-picker-examples.module.ts index 856e9d0e..0b025760 100644 --- a/app/ui-category/time-picker/time-picker-examples.module.ts +++ b/app/ui-category/time-picker/time-picker-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { TimePickerExamplesComponent } from "./time-picker-examples.component"; import { ConfigureTimePickerComponent } from "./configure-time-picker/configure-time-picker.component"; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module"; diff --git a/app/ui-category/web-view/web-view-examples.module.ts b/app/ui-category/web-view/web-view-examples.module.ts index 4e73aeaf..23ab960c 100644 --- a/app/ui-category/web-view/web-view-examples.module.ts +++ b/app/ui-category/web-view/web-view-examples.module.ts @@ -1,6 +1,6 @@ import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { NativeScriptModule } from "nativescript-angular/platform"; +import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { WebViewExamplesComponent } from "./web-view-examples.component"; import { BasicWebViewComponent } from "./basic-web-view/basic-web-view.component"; import { WebViewHtmlComponent } from "./web-view-html/web-view-html.component"; From 7feec82f8192b0de5704561686a535db90fb6598 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Fri, 6 Jan 2017 16:29:50 +0200 Subject: [PATCH 3/3] fix(lazy-loading): import NSModuleFactoryLoader from nativescript-angular --- app/app.module.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/app.module.ts b/app/app.module.ts index c0e579de..df952107 100644 --- a/app/app.module.ts +++ b/app/app.module.ts @@ -3,13 +3,12 @@ // >> (hide) import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NgModule, NO_ERRORS_SCHEMA, NgModuleFactoryLoader } from "@angular/core"; -import { NativeScriptRouterModule } from "nativescript-angular/router"; +import { NativeScriptRouterModule, NSModuleFactoryLoader } from "nativescript-angular/router"; import { NativeScriptFormsModule } from "nativescript-angular/forms"; import { routes } from "./app.routes"; import { AppComponent } from "./app.component"; // << (hide) -import { NsModuleFactoryLoader } from "./ns-module-factory-loader"; import { ModalDialogService } from "nativescript-angular/modal-dialog"; import { registerElement } from "nativescript-angular/element-registry"; import { TnsGoogleMaps } from "nativescript-googlemaps"; @@ -31,7 +30,7 @@ declare var GMSServices: any; ], providers: [ ModalDialogService, - { provide: NgModuleFactoryLoader, useClass: NsModuleFactoryLoader } + { provide: NgModuleFactoryLoader, useClass: NSModuleFactoryLoader } ] }) // << ngmodule-config