How to use Do While loop in Ionic 2/3?

I want to implement a logic in HTML page. I am new to Angular Ts that’s why i am finding it very difficult.

It is same as you use in javascript.
For example,

var i = 0;
do {
    console.log("The number is " + i);
while (i < 5);