0.3.2 • Published 5 years ago

ember-windoc v0.3.2

Weekly downloads
452
License
MIT
Repository
github
Last release
5 years ago

ember-windoc

Build Status Version

Easy, fastboot-friendly consumption of window and document functionality in Ember.js apps.

ember-windoc

Use

You may install this addon with ember-cli

ember install ember-windoc

Then, simply inject the windoc service onto any ember object, and build computed properties off of relevant viewport measurements

app/components/my-component.js

import Ember from 'ember';

const { Component, inject } = Ember;

export default Component.extend({
  windoc: inject.service()
});

app/templates/components/my-component.hbs

{{windoc.scrollRight}}

The image at the top of this readme is a great guide in terms of useful properties to bind to.

Contributing

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

7 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago