I am using Angular JS for a simple web-app.
I have a JSON object that contains multiple paragraphs. Therefore I need to separate the paragraphs onto two lines. I did some research and I found some answers to similar questions but because they were not put in context I did not understand them. I tried looking to see if JSON had something built in that forced a line break, because that would do, but I did not find that.
Help is greatly appreciated!
HTML w/ Angular JS
<div class="bio"> {{exhibits[whichItem].bio}} </div> JSON
[ { "name":"Name goes here", "bio":"First long block of text goes here then it needs a break <br /> and the second long block of text is here." } ] AngularJS - controllers.js
var exhibitListControllers = angular.module('exhibitListControllers', ['ngAnimate']); exhibitListControllers.controller('ListController', ['$scope', '$http', function($scope, $http){ $http.get('js/data.json').success(function(data) { $scope.exhibits = data; $scope.exhibitOrder = 'name'; }); }]);