Complete example of ngFor angular 4/5/6/7

Display all number's
<span *ngFor="let num of numbers;">

Display even indexed number only.<br>
<table border="1">
  <tr *ngFor="let num of numbers; let even=even; let odd=odd;">


Display 2 number in row 

<table border="1">
  <ng-container *ngFor="let num of numbers;let ind = index;">
  <tr *ngIf="num % 2 === 1">
    <td>{{numbers[ind + 1]}}</td>    

first number and last number

<div *ngFor="let num of numbers;let first=first;let last=last;">
  <span *ngIf="first">First => {{first}} => {{num}}</span>
  <span *ngIf="last">Last => {{last}} => {{num}}</span>
import { Component } from '@angular/core';

  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ]
export class AppComponent  {
  numbers = [