Meteor - layoutTemplate in RouteController.extend in package.js
-
26-12-2019 - |
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
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