AngularJS: Best way to watch dimensions?

后端 未结 2 1331
太阳男子
太阳男子 2021-02-04 01:30

So, I\'ve come up with a few solutions to this and I\'m still not quite sure what is best. First for reference there is one similar question I could find, though it\'s a bit ol

2条回答
  •  温柔的废话
    2021-02-04 01:51

    Check out http://snapjay.github.io/angularjs-breakpoint/

    which does a lot of what you need, I think. You can watch window width and so on. I'm not sure if it works on height as well, but you could extend it.

提交回复
热议问题