Skip to content

Commit b26f89e

Browse files
chore: angular 16 updates
1 parent 9043761 commit b26f89e

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

apps/demo/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../../../scripts/polyfills.ts';
1+
import './polyfills';
22

33
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
44
import { enableProdMode } from '@angular/core';

apps/demo/src/polyfills.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/***************************************************************************************************
2+
* Zone JS is required by default for Angular itself.
3+
*/
4+
import 'zone.js'; // Included with Angular CLI.
5+
6+
/***************************************************************************************************
7+
* APPLICATION IMPORTS
8+
*/
9+
10+
(window as any)['global'] = window;

apps/demo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.base.json",
33
"files": [
44
"./src/main.ts",
5-
"../../scripts/polyfills.ts"
5+
"./src/polyfills.ts"
66
],
77
"include": [
88
"./src/typings.d.ts"

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"private": true,
55
"description": "Angular file upload directives",
66
"scripts": {
7-
"ng": "nx",
8-
"start": "ng serve",
7+
"start": "npx nx run ng2-file-upload-demo:serve",
98
"demo.build": "ng build",
109
"demo.build-prod": "ng build",
1110
"build": "nx run ng2-file-upload:build",

scripts/polyfills.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)