UNPKG

ember-computed-size

Version:

Need to have some properties on your views with the current width and height of their main element? Here is the mixin which does this for you.

9 lines (7 loc) 226 B
export function initialize(container, application) { application.inject('view', 'windowSizeService', 'ember-computed-size@service:window-size'); } export default { name: 'window-size-service', initialize: initialize };