How to Access codemirror text area value in Angular2 Component?
问题 I am trying to link codemirror with Angular 2 (TypeScript) . Right now ,I am able to display CodeEditor using a codearea custom directive ,which dynamically loads a script file and Formats the text area . I am not able to get the value ,the user types in the text area ,I have tried NgModel,value etc ,I think codemirror is removing the textarea and re inserting it again ,that might cause an error . I have tried to use onchange and keyup event handlers ,but they are being repeatedly called when