我有一个控制器,我在其中定义TakenSeatNumbers
变量:
TravelClient.TourSeatsController = Ember.ObjectController.extend({
selectSeat: function(seat) {
var orderTransaction = TravelClient.store.transaction();
var takenSeatNumber = orderTransaction.createRecord(TravelClient.TakenSeatNumber, {number: seat.get('id')});
}
});
如何TakenSeatsNumbers
从tour/seats
模板访问?该模型Tour
在TourSeatsController
.