Question

I have problem with iron-router controllers in package. My code:

Router.map(function() {
  this.route('registration.index', {path: '/registration'});
});


RegistrationIndexController = RouteController.extend({
  layoutTemplate: 'IntranetLayoutSimple'
  ...
});

LayoutTemplate not working

Was it helpful?

Solution

If you're creating new route controllers inside package and want to use them in main app, remember to export it, e.g.:

api.export('RegistrationIndexController', ['client', 'server']); in package.js

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top