Ember.js: ObjectControllers not found -
i think have in place. cannot use `needs: ['shipping', 'checkout'] in payment controller not found, see error:
error while loading route: error: <appkit@controller:article/payment::ember1670> needs [ controller:checkout, controller:shipping ] not found
the fun part is, have visited routes earlier because part of checkout process. take @ router:
this.resource('articles', {path: '/product'}, function() { // fill articles navigation slider this.resource('article', {path: '/:article_id'}, function() { // article information slider // (...) // have active article, thats why shipping underneath 'article' this.route('shipping', {path: '/verzending'}); this.route('checkout', {path: '/betaalwijze'}); this.route('payment', {path: '/afrekenen'}); }); });
so visit: shipping
checkout
, payment
, error. controllers objectcontrollers.
folder structure:
in shipping controller use needs
include arraycontroller work. maybe has objectcontrollers?
thanks in advance hints!
edit: make them ember.controller
not have effect.
see question: observes other childcontroller?
the state of objectcontroller seems not live long.
Comments
Post a Comment