This is probably a basic question but I'm relatively new to JS. I have a div that is rendered in jQuery:
$('.bscroll').after('<h1>{{{selected.name}}}</h1>');
And then I have some data I am getting from Angular:
var phonecatApp = angular.module('phonecatApp', []);
phonecatApp.controller('PhoneListCtrl', function ($scope) {
$scope.select = function(artist) {
$scope.selected = artist;
};
$scope.list = [{
name: "Beatles",
songs: ["Yellow Submarine", "Helter Skelter", "Lucy in the Sky with Diamonds"]
}, {
name: "Rolling Stones",
songs: ["Ruby Tuesday", "Satisfaction", "Jumpin' Jack Flash"]
}];
});
However this ends up displaying as {{selected.name}}
Is there a way to escape this in jQuery to allow the Angular data to display correctly?