What is elementref in angular 4?



What is elementref in angular 4?..

Answer / Yachana Sharma

ElementRef is an Angular service that provides a reference to the native DOM element of an Angular component. It can be used to access and manipulate the DOM directly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to use the json object in ng-repeat?

1 Answers  


What is splice method?

1 Answers  


What is called in angular?

1 Answers  


Does apple use angular?

1 Answers  


What is router outlet in angular?

1 Answers  


What is parent scope and rootscope in angularjs?

1 Answers  


What is the scope of $scope?

1 Answers  


If both factory and service are equivalent, then when should I use them?

1 Answers  


What is the promise?

1 Answers  


What is "track by" in angularjs and how does it work?

1 Answers  


What are the differences between angular and angular js?

1 Answers  


What is the use of polyfills.ts file in angular 2?

1 Answers  


Categories