Fix empty text

This commit is contained in:
mauriziovitale84
2016-10-31 10:29:33 +00:00
parent 75915dc623
commit 5059436551
@@ -41,6 +41,9 @@ export class RaphaelTextDirective extends RaphaelBase implements OnInit {
ngOnInit() {
console.log(this.elementRef);
if (this.text === null || this.text === undefined) {
this.text = '';
}
this.draw(this.position, this.text);
}