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



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

Answer / 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

More AngularJS Interview Questions

Explain the architecture of angular 2?

1 Answers  


What are pipes in angular 2?

1 Answers  


What is mvc application?

1 Answers  


When to use ngoninit and constructor in angular 2?

1 Answers  


What do you understand by rest in angular?

1 Answers  


Is armin a girl?

1 Answers  


How to handle xss or csrf attacks in angular 4 ?

1 Answers  


Is react a framework?

1 Answers  


Why do we need provider aliases? And how do you create one?

1 Answers  


When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used?

1 Answers  


What are filters in angularjs? Can you list some?

1 Answers  


Explain the difference between angular and angularjs?

1 Answers  


Categories