Attempting to implement ngFor in Angular 2 rc-1, here is an example:
@Component({
selector: 'myList',
template: `<h2>Menu</h2>
{{title}}
<ul>
<li *ngFor="let menu of menus">
{{menu }}
<li>
</ul>`
})
export class MenuComponent {
title:string = "Our lunch menu";
menus= ["Menu 1", "Menu 2", "Menu 3"];
}
The issue I'm encountering is that instead of generating 3 bullet points/lists, it ends up with 4 bullets, the last one being empty.
Does anyone have any insights into why this might be happening or if I made a mistake?
Appreciate any help!