I am a dotnet developer and I have a problem in knockoutjs.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script src="
https://knockoutjs.com/downloads/jquery.tmpl.min.js"></script>
<script src="
https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.1/knockout-latest.js"></script>
<title></title>
</head>
<body>
<h2>My Menu</h2>
<hr />
<div data-bind="template: { name: 'items', data: breakfast, templateOptions: { header: 'Breakfast Items', message: 'Wake up to these delicious items!', class: 'breakfast' } }"></div>
<script id="items" type="text/html">
<h3>${$item.header}</h3>
<div class="${$item.class}">
{{each $data}}
<p>
<span class="name">${name}</span>
<span class="price">${price}</span>
</p>
{{/each}}
</div>
<p><em>${$item.message}</em></p>
<hr />
<div data-bind="template: { name: 'items2', data: newItems, templateOptions: { header: 'New Items', message: 'Wake up to these delicious items!', class: 'breakfast'} }"></div>
</script>
<script id="items2" type="text/html">
<h3>${$item.header}</h3>
<div class="${$item.class}">
{{each $data}}
<p>
<span class="name">${name}</span>
<span class="price">${price}</span>
</p>
{{/each}}
</div>
<p><em>${$item.message}</em></p>
<hr />
</script>
<script type="text/javascript">
var viewModel = {
breakfast: [
{ name: "toast", price: 2.50 },
{ name: "pancakes", price: 4.00 },
{ name: "eggs", price: 3.25 }],
newItems: [
{ name: "Oats", price: 2.50 }],
};
ko.applyBindings(viewModel);
</script>
</body>
</html>