angular loop element code example
Example 1: ngFor
//for
{{i}} {{data.title}}
//the data contained in an array will be displayed element by element
//similar to the function .map() in React
Example 2: angular for loop
let array = [1,2,3];
array.forEach(function (value) {
console.log(value);
});