Skip to content

Commit 6396600

Browse files
authored
Angular version 6 is not supported (#1062)
Angular version 6 is not supported
1 parent d5901cf commit 6396600

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devextreme-angular",
3-
"version": "19.2.4",
3+
"version": "20.1.0",
44
"description": "Angular UI and visualization components based on DevExtreme widgets",
55
"repository": {
66
"type": "git",
@@ -20,9 +20,9 @@
2020
"license": "MIT",
2121
"peerDependencies": {
2222
"devextreme": "20.1-next",
23-
"@angular/core": ">6.0.0",
24-
"@angular/common": ">6.0.0",
25-
"@angular/forms": ">6.0.0"
23+
"@angular/core": ">7.0.0",
24+
"@angular/common": ">7.0.0",
25+
"@angular/forms": ">7.0.0"
2626
},
2727
"devDependencies": {
2828
"@angular/animations": "~7.2.0",

src/core/integration.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { NgModule, Inject, NgZone, Optional } from '@angular/core';
2+
import { NgModule, Inject, NgZone, Optional, VERSION } from '@angular/core';
33
import { XhrFactory } from '@angular/common/http';
44
import * as httpRequest from 'devextreme/core/http_request';
55
import { DOCUMENT } from '@angular/common';
@@ -21,6 +21,10 @@ readyCallbacks.inject({
2121
});
2222

2323
let doInjections = (document: any, ngZone: NgZone, xhrFactory: XhrFactory) => {
24+
if (Number(VERSION.major) < 7) {
25+
console.warn('Your version of Angular is not supported (https://supportcenter.devexpress.com/ticket/details/t879496). Please update your project to version 7 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io');
26+
}
27+
2428
domAdapter.inject({
2529
_document: document,
2630

0 commit comments

Comments
 (0)