I return a string in the c# MVC controller as follows:

 Errors in messagernFirstName must be filledrnLastName must be filled

When i do a quick watch on this it shows as

      Errors in message
      FirstName must be filled
      LastName must be filled

Which is fine.

I then send this to my AngularJS Javascript controller and the rn are not preserved and it display the text as follows:

   Errors in messageFirstName must be filledLastName must be filled

How can i preserve the text formatting ?

2

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *