I'm trying to get AngularJS and/or HTML to print out the following on 2 separate lines:
FOO
BAR
But my following HTML and JS are showing it on the same line despite my newline \n
.
HTML
<div ng-controller="MyCtrl">
{{name}}!
</div>
JavaScript
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.name = 'FOO \n BAR';
}
Is this possible?
,
– Vlad Lego Feb 07 '18 at 13:08or