干杯! 我有两个控制器,我想访问takenSeatsNumbers
from TravelClient.TourController
。
TravelClient.TourController = Ember.ObjectController.extend({
needs: ['tour.seats']
});
TravelClient.TourSeatsController = Ember.ObjectController.extend({
takenSeatsNumbers: []
});
我是否needs
以正确的方式使用?以及如何takenSeatsNumbers
从tour
模板中获取?