+
Welcome to ivySwiperApp!
Examples
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index bb0f856..8cd36a2 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -7,6 +7,7 @@ import { Component, ViewChildren } from '@angular/core';
})
export class AppComponent {
+ title = 'ivySwiperApp';
images = [
{path: '/assets/photo-1548625149-9129dad5eef7.jpg'},
{path: '/assets/photo-1548625149-d37da68f9a7f.jpg'},
diff --git a/src/polyfills.ts b/src/polyfills.ts
index 373f538..dcd18ea 100644
--- a/src/polyfills.ts
+++ b/src/polyfills.ts
@@ -18,18 +18,6 @@
* BROWSER POLYFILLS
*/
-/**
- * IE11 requires the following for NgClass support on SVG elements
- */
-// import 'classlist.js'; // Run `npm install --save classlist.js`.
-
-/**
- * Web Animations `@angular/platform-browser/animations`
- * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
- * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
- */
-// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
-
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
diff --git a/src/test.ts b/src/test.ts
index 2042356..ae25f27 100644
--- a/src/test.ts
+++ b/src/test.ts
@@ -7,19 +7,10 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
-declare const require: {
- context(path: string, deep?: boolean, filter?: RegExp): {
- keys(): string[];
- (id: string): T;
- };
-};
-
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
- platformBrowserDynamicTesting()
+ platformBrowserDynamicTesting(), {
+ teardown: { destroyAfterEach: false }
+}
);
-// Then we find all the tests.
-const context = require.context('./', true, /\.spec\.ts$/);
-// And load the modules.
-context.keys().map(context);
diff --git a/tsconfig.json b/tsconfig.json
index 68b9fe8..7842948 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -20,12 +20,13 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
- "target": "es2017",
+ "target": "ES2022",
"module": "es2020",
"lib": [
"es2018",
"dom"
- ]
+ ],
+ "useDefineForClassFields": false
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,