I made some adjustments to your code and now it is functioning properly
<!DOCTYPE html>
<html ng-app>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="app.js"></script>
<style>
.mHeader
{
background-color:Black;
color: Orange;
width: 200px;
padding-bottom: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<div ng-controller="MeetingsCtrl">
<div id="div1" style="background-color: Brown; width: 200px;">
</div>
<script>
function MeetingsCtrl($scope, $compile) {
$scope.itemselected = "None";
$scope.meetings = [
{
country: 'South Africa',
children: [
{name: "Horse1"},
{ name: "Horse2" }
]
},
{
country: 'Great Britain',
children: [{ name: "Horse3" },
{ name: "Horse4" }]
},
{
country: 'United States',
children: [{ name: "Horse5" },
{ name: "Horse6" }]
},
{
country: 'Zimbabwe',
children: [{ name: "Horse7" },
{ name: "Horse8" }]
}
];
$('#div1').html(
$compile(
'<ul><li ng-repeat="meeting in meetings"><a>{{meeting.country}}</a> <ul><li ng-repeat="child in meeting.children">{{child.name}}</li></ul></li></ul>'
)($scope)
);
$('#div1').prepend('<div class="mHeader">Race courses</div>');
}
</script>
</body>
</html>