From cfd5c40930570b9d7f3b4a71c6934f3fa7beb95d Mon Sep 17 00:00:00 2001 From: MrFrankel Date: Fri, 9 Mar 2018 00:54:45 +0200 Subject: [PATCH] fix dev env --- example/app/app.component.html | 2 +- example/app/app.module.ts | 3 +-- example/app/index.ts | 6 +++--- tsconfig.json | 2 +- webpack.config.js | 10 +++++----- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/example/app/app.component.html b/example/app/app.component.html index 417ee26..be805b0 100644 --- a/example/app/app.component.html +++ b/example/app/app.component.html @@ -17,7 +17,7 @@ -

Popper on {{example1select}}

+

Popper on {{example1select}}

diff --git a/example/app/app.module.ts b/example/app/app.module.ts index 4c09e31..3ebf1b7 100644 --- a/example/app/app.module.ts +++ b/example/app/app.module.ts @@ -11,8 +11,7 @@ import {Draggable} from 'ng2draggable/draggable.directive'; FormsModule, NgxPopperModule.forRoot({ trigger: Triggers.NONE, - hideOnClickOutside: false, - disableAnimation: true + hideOnClickOutside: false })], declarations: [ Draggable, diff --git a/example/app/index.ts b/example/app/index.ts index f6ac4ef..d3a8938 100644 --- a/example/app/index.ts +++ b/example/app/index.ts @@ -10,12 +10,12 @@ import 'rxjs'; import { enableProdMode } from '@angular/core'; // The browser platform with a compiler -import {platformBrowser} from '@angular/platform-browser'; -//import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +//import {platformBrowser} from '@angular/platform-browser'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; // The app module import { AppModule } from './app.module'; enableProdMode(); -platformBrowser().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/tsconfig.json b/tsconfig.json index da6cd68..dc2ed74 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,7 +31,7 @@ "example-cli" ], "angularCompilerOptions": { - "fullTemplateTypeCheck": true, + // "fullTemplateTypeCheck": true, "preserveWhiteSpace": false } diff --git a/webpack.config.js b/webpack.config.js index e9fc27c..59adaca 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,11 +19,11 @@ module.exports = { devtool: 'source-map', module: { rules: [ - // { - // test: /\.ts?$/, - // use: ['awesome-typescript-loader', 'angular2-template-loader'] - // }, - { test: /\.ts$/, loaders: ['@ngtools/webpack'] }, + { + test: /\.ts?$/, + use: ['awesome-typescript-loader', 'angular2-template-loader'] + }, + // { test: /\.ts$/, loaders: ['@ngtools/webpack'] }, /* Embed files. */ { test: /\.(html|css)$/,