added service to provide canvas all over

This commit is contained in:
libretech committed 2018-05-23 14:23:43 +02:00
1 parent 1231b2de9c
commit 040782f18a
7 files changed
+70 -17

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { Inject, Injectable, Optional, ViewChild } from '@angular/core';
import * as Selection from 'd3-selection';
@Injectable()
export class CanvasService {
public canvas: any;
constructor() {
}
public get get() {
return this.canvas;
}
public set(el) {
this.canvas = el;
}
}