Alberto Maturano 154fc28a57 Normalize to standar file permissions
As a result of taking a look on PR #1967 I realized there is 819
executable files in this repository. It is obvious this is an error.
2018-09-24 12:33:09 -05:00

26 lines
812 B
Handlebars

{
path: '{{ path }}',
name: '{{ camelCase component }}',
getComponent(nextState, cb) {
const importModules = Promise.all([
System.import('containers/{{ properCase component }}/reducer'),
{{#if useSagas}}
System.import('containers/{{ properCase component }}/sagas'),
{{/if}}
System.import('containers/{{ properCase component }}'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer,{{#if useSagas}} sagas,{{/if}} component]) => {
injectReducer('{{ camelCase component }}', reducer.default);
{{#if useSagas}}
injectSagas(sagas.default);
{{/if}}
renderRoute(component);
});
importModules.catch(errorLoading);
},
},$1