Inside ngOnInit function, we attribute this.editor.options to optionsBefore but the value this.editor.options is actually undefined if we use console to check the value.
This causes some problems when we try updating our data since the option before is undefined and the jsgantt will, therefore, use some default options.
Here is a screenshot when I access the editor.options from the parent component. As we can see, all these options are already parts of the editornot inside editor.options
Inside
ngOnInit
function, we attributethis.editor.options
tooptionsBefore
but the valuethis.editor.options
is actuallyundefined
if we use console to check the value. This causes some problems when we try updating our data since the option before is undefined and the jsgantt will, therefore, use some default options. Here is a screenshot when I access theeditor.options
from the parent component. As we can see, all these options are already parts of theeditor
not insideeditor.options