Skip to content

Commit

Permalink
Use chart and editor with import statement instead of global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jun 1, 2019
1 parent 37910dc commit 8fddfcb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@
],
"scripts": [
"./node_modules/moment/moment.js",
"./node_modules/chart.js/dist/Chart.js",
"./node_modules/@fullcalendar/core/main.js",
"./node_modules/@fullcalendar/daygrid/main.js",
"./node_modules/@fullcalendar/timegrid/main.js",
"./node_modules/@fullcalendar/interaction/main.js",
"./node_modules/quill/dist/quill.js",
"./node_modules/prismjs/prism.js",
"./node_modules/prismjs/components/prism-typescript.js"
]
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/chart/chart.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {NgModule,Component,ElementRef,AfterViewInit,OnDestroy,Input,Output,EventEmitter} from '@angular/core';
import {CommonModule} from '@angular/common';

declare var Chart: any;
import Chart from 'chart.js';

@Component({
selector: 'p-chart',
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import {CommonModule} from '@angular/common';
import {SharedModule,Header} from '../common/shared'
import {DomHandler} from '../dom/domhandler';
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';

declare var Quill: any;
import Quill from "quill";

export const EDITOR_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR,
Expand Down

0 comments on commit 8fddfcb

Please sign in to comment.