Hello everyone, I am going to share the code sample for using of ngFor loop in angular2 with ES5 . The Table of Contents, 1. Angular 2 with ES5 2. HTML 3. Full Live code(HTML + Angular 2 with ES5 ) Go for live demo punker link… The below example is written in the old one versions of Anglar2. Now in the new versions (2.beta.17), usage of # ... is deprecated! In the new versions, we are using let instead # i.e. <div * ngFor= "#user of users" > now becomes <div * ngFor= "let user of users" > //The Angular 2 code with ES5 as given below var ngForLoop = function () { this .msg = "ng for loop in angular 2 with ES5." ; this .users = [ "Anil" , "Sunil" , "Sushil" , "Aradhya" , 'Reena' ]; }; ngForLoop.annotations = [ new angular.Component({ selector : 'ngforloop' }), n...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers