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?