2
0

added binging between directive and parent component

This commit is contained in:
2018-05-10 21:35:28 +02:00
parent 51e7822b04
commit e4352d9579
5 changed files with 27 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import { Config } from './models/config.model';
import * as d3 from 'd3';
@Component({
@@ -7,5 +8,9 @@ import * as d3 from 'd3';
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'app';
public canvasConfig: Config|null;
public updateCanvasConfig(config): void {
this.canvasConfig = config;
}
}