Michał Wanat
Michał Wanat

Reputation: 185

Meteor - layoutTemplate in RouteController.extend in package.js

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

Upvotes: 3

Views: 229

Answers (1)

MacRusher
MacRusher

Reputation: 501

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

Upvotes: 2

Related Questions