Q:

Ember.js get data from controller

I have a controller where I define the TakenSeatNumbers variable:
TravelClient.TourSeatsController = Ember.ObjectController.extend({
  selectSeat: function(seat) {
    var orderTransaction = TravelClient.store.transaction();
    var takenSeatNumber = orderTransaction.createRecord(TravelClient.TakenSeatNumber, {number: seat.get('id')});
  }
});

How do I access TakenSeatsNumbers from the tour/seats template? The model Tour is in the context of TourSeatsController.

A:

As per my comment, promote that function variable (takenSeatsNumber) into a property within the controller so it's public, similar to the following: 
TravelClient.TourSeatsController = Ember.ObjectController.extend({
  takenSeatNumber: null, 
  selectSeat: function(seat) {
    var orderTransaction = TravelClient.store.transaction();
    this.set('takenSeatNumber', 
             orderTransaction.createRecord(TravelClient.TakenSeatNumber, {number: seat.get('id')})
    );
  }
});

