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


#1

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


#2

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

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