ui-codemirror icon indicating copy to clipboard operation
ui-codemirror copied to clipboard

Indentation with ng-model

Open furyscript opened this issue 9 years ago • 0 comments

I have a simple ui-codemirror page with ng-model bind to a string of code like this

$scope.str = "Hello\
I'm Jhon";

But ui-codemirror not respect indentation so I put

$scope.str = "Hello\n\
I'm Jhon";

And It works fine.

Is there a solution without using \n default?

furyscript avatar Oct 13 '16 10:10 furyscript