Open dheerajbhaskar opened 8 years ago
Okay, this might seem obvious in hindsight, does the loadingTemplate: 'game.loading'
mean to declare the name of the loading template verbatim? if I declare it to be GameLoading then it works fine according to the naming conventions.
@dheerajbhaskar yeah, i'm not sure the template namespacing/translation was intended to work on the loading template... but it does seem logical to have that functionality
Expectation:
Per the
readme.md
, templates are found this way: if the route name isgame.loading
, then the templateGameLoading
is tried to load first.Problem
When I do this, I get this error:
As the error message suggests,
gameLoading
for template name works perfectly fine. This might be a trivial issue but this breaks the project naming convention for templates. Whatreadme.md
says holds good forRouter.route
declarations likeRouter.route('/', {name: 'game.main'});
This is breaking for me and is very reproducible:
Code:
My loading template:
My controller:
My project structure: