What is difference between $document and window.document in AngularJS?

Answer Posted / chaitanya

$document is an Angular service which reference to the browser's window.document object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a factory?

456


What are the binding directives in angularjs?

427


List out the components which can be used in AngularJS modules?

437


What are http interceptors used for?

416


What is traceur compiler ?

474






When latest angularjs was released?

418


What is difference between component and module in angular?

407


Explain ngfor and ngif?

449


Explain class and inheritance in js?

436


What are the difference between angular 4 & angular 5?

423


How would you select a custom component to style it?

440


How event emitters works in angular 2?

411


What does the ng stand for in angular?

406


How to assign alternate class to rows in angular js?

426


Explain currency filter?

454