added service to provide canvas all over
This commit is contained in:
19
src/app/services/canvas.service.ts
Normal file
19
src/app/services/canvas.service.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user