Skip to content

Commit

Permalink
fix(universal): remove need to add KeyboardEvent hack to server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Apr 12, 2020
1 parent 0faa8ef commit 0e9e8d1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ https://mattlewis92.github.io/angular-calendar/
<a href="https://github.com/sponsors/mattlewis92">Become a gold or platinum sponsor<a> and get your logo on this README on Github with a link to your site.<br><br>

<a href="https://runbox.com/" target="_blank"><img src="https://raw.githubusercontent.com/runbox/runbox7/master/src/assets/runbox7_blue_dark.png" width="288"></a>

</div>

## Table of contents
Expand Down Expand Up @@ -78,9 +79,9 @@ import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
BrowserAnimationsModule,
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
})
]
useFactory: adapterFactory,
}),
],
})
export class MyModule {}
```
Expand Down Expand Up @@ -111,7 +112,6 @@ Yes. For universal to work though, you will need to add this near the top of you

```ts
global['window'] = {};
global['KeyboardEvent'] = null;
```

### What major versions of angular does this library support?
Expand Down
1 change: 0 additions & 1 deletion build-tool-examples/angular-cli/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import * as express from 'express';
import {join} from 'path';

global['window'] = {};
global['KeyboardEvent'] = null;

// Express server
const app = express();
Expand Down
1 change: 0 additions & 1 deletion build-tool-examples/angular-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
Expand Down
4 changes: 0 additions & 4 deletions projects/angular-calendar/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
Expand Down

0 comments on commit 0e9e8d1

Please sign in to comment.