Accordion list \n doesn't work

Greeting.

i want use \n when print accordion.

but, seem to doesn’t work.

codepen -> http://codepen.io/WindSekirun/pen/gsjde (fork from http://codepen.io/ionic/pen/uJkCz)

for (var i=0; i<10; i++) {
$scope.groups[i] = {
  name: i,
  items: []
};
for (var j=0; j<3; j++) {
  $scope.groups[i].items.push(i + '-' + j + '\n' +i + '-' + j);
}
}

if source is correct, it should be output

1-0
2-0

not 1-0 2-0.

what can i should to do?

The solution:

Basically, the <pre> tag is designed to render preformatted tags :wink:

1 Like

Thanks, it’s work! :slight_smile:

Glad I were able to help :slight_smile: