App.InputController = Ember.Controller.extend({

    latitude: null,
    longitude: null,

    needs: ['location', 'error'],
    actions: {
        sendAddress: function(address) {
            this.get('controllers.error').send('resetError');
            this.get('controllers.location').send('receiveAddress', address);
        },
        detectLocation: function() {
            // TODO implementation
            // this.get('controllers.location').send('detectLocation');
        }
    }
});
App.InputController = Ember.Controller.extend({

    /**
     * An array of other controller objects available inside instances of this controller.
     *
     * @see http://emberjs.com/api/classes/Ember.Controller.html#property_needs
     */
    needs: ['location', 'error'],

    /**
     * Entry points to receive events from other components like templates or controller.
     */
    actions: {
        sendAddress: function(address) {
            this.get('controllers.error').send('resetError');
            this.get('controllers.location').send('receiveAddress', address);
        }
    }
});
clean up and documentation of input controller * remove coordinates detection todo * add js doc * remove unused properties --skip-ci