3

That is my question, I am working with AngularJS and I need to know what are the differences between $document and $window because I am doing some directives that I need to work depending on screen resolution, so I need to aim to some different points before I start defining where that directives must to called.

Non
  • 8,409
  • 20
  • 71
  • 123

1 Answers1

1

It would be same as the difference between window and document objects in JavaScript. window is the visible part so you should probably work with that.

What is the difference between window, screen, and document in Javascript?

Community
  • 1
  • 1
Ufuk Hacıoğulları
  • 37,978
  • 12
  • 114
  • 156