What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?



What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?..

Answer / Satyendra Kumar Gupta

In Angular 2, `{*ngFor}` iterates over an array or any Iterable object, while `{ngForOf}` iterates over an array-like object. The difference is that `{*ngFor}` requires the object to have a length property, whereas `{ngForOf}` does not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are the main advantages of angularjs?

1 Answers  


Difference between services and factory.

1 Answers  


What are directives in angular 6?

1 Answers  


Explain deep linking in angularjs?

1 Answers  


What is dependency injection in angularjs and how does it work?

1 Answers  


How to debug AngularJS app in browser?

1 Answers  


What is a cookie?

1 Answers  


What are services in javascript?

1 Answers  


What is a locale ID?

1 Answers  


What is core module in AngularJS?

1 Answers   SLK Software,


Why we need ngmodel in angular 4?

1 Answers  


What is ngmodule decorator?

1 Answers  


Categories