2
0

added service to provide canvas all over

This commit is contained in:
2018-05-23 14:18:34 +02:00
parent 1231b2de9c
commit 040782f18a
7 changed files with 70 additions and 17 deletions

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;
}
}