100% width |
reduced width |
|
|
"dependencies": {
"@angular/animations": "^5.2.11",
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.11",
"@angular/core": "^5.2.11",
"@angular/forms": "^5.2.11",
"@angular/http": "^5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "^5.2.11",
"@angular/platform-server": "^5.2.11",
"@angular/router": "^5.2.11",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0",
"@syncfusion/ej2-layouts": "^16.3.30",
"angular-auth-oidc-client": "^4.1.0",
"angular2-notifications": "0.7.0",
"aspnet-prerendering": "^3.0.1",
"auth0-js": "^9.8.1",
"bootstrap": "^3.3.7",
"core-js": "^2.5.7",
"ej-angular2": "^16.3.21",
"rxjs": "^5.5.12",
"syncfusion-javascript": "^16.3.29",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "~1.7.4",
"@angular/compiler-cli": "^5.2.11",
"@angular/language-service": "^5.2.11",
"@types/ej.web.all": "^16.3.1",
"@types/jasmine": "^2.8.9",
"@types/jasminewd2": "^2.0.5",
"@types/jquery": "^3.3.22",
"@types/node": "^6.14.1",
"codelyzer": "^4.5.0",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.5",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
},
firstcomponent.ts
import { ChartComponent } from '@syncfusion/ej2-angular-charts';
@Component({
template: `<ejs-chart>
//…
</ejs-chart>`
})
app.module.ts
import { ChartAllModule } from '@syncfusion/ej2-angular-charts';
@NgModule({
imports: [
ChartAllModule
],
package.json
"dependencies": {
"@syncfusion/ej2-angular-charts": "^17.4.39",
} |
@NgModule({
...
imports: [
BrowserModule,
// EJAngular2Module.forRoot(), remove EJ1 modules
ChartModule,
ButtonModule
],
...
})
|
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { ToolbarModule } from '@syncfusion/ej2-angular-navigations';
import { ChartAllModule } from '@syncfusion/ej2-angular-charts';
import { DateTimePickerModule } from '@syncfusion/ej2-angular-calendars';
import { AppComponent } from './app.component';
import { FirstComponent } from './first.component';
import { SecondComponent } from './second.component';
import { RouterModule, Routes } from '@angular/router';
import { EJ_GRID_COMPONENTS } from 'ej-angular2/src/ej/grid.component';
const appRoutes: Routes = [
{ path: 'first', component: FirstComponent },
{ path: 'second', component: SecondComponent },
{
path: '',
redirectTo: '/first',
pathMatch: 'full'
}
];
@NgModule({
imports: [
BrowserModule,
GridModule,
ChartAllModule,
ToolbarModule,
CommonModule,
DateTimePickerModule,
RouterModule.forRoot(
appRoutes,
{ useHash: true })
],
declarations: [AppComponent, FirstComponent, EJ_GRID_COMPONENTS, SecondComponent],
bootstrap: [AppComponent],
providers: [GroupService, EditService, FilterService, PageService, SortService, ToolbarService]
})
export class AppModule { } |