0.0.4 • Published 9 years ago

ember-cli-activated-controller v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Ember-cli-activated-controller

Ever wanted to know if a controller is currently showing or not? Here's an addon that does that.

Example

  MyController = Ember.Controller.extend({
    activeObserver: (function() {
      if (this.get('active')) {
        console.log('i am currently active');
      } else {
        console.log('i am not active');
      }
    }).observes('active'),
    ...
  })

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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