Hi all,
I'm trying to set up an ace editor as an Angular2 component and it works pretty well.
The issue I have is with Autocomplete. I need my ace to respond on autocomplete hitting dot (.)
It used to work for me by adding the following code:
editor.commands.on("afterExec", function(e){
editor.execCommand("startAutocomplete")
}
})
But doing similar with angular class I'm getting the this.editor undefined executing this.editor.execCommand("startAutocomplete")
this.editor.execCommand("startAutocomplete");
}
})
Any idea of how can I solve this?
And insight, advice, or guidance would be greatly appreciated. Thanks!!!
My sample code: