Closed v3rron closed 9 years ago
Your onBeforeAction
's for the loading screen are only being passed strings. Those are hooks that expect a function to be passed in to be executed on the routes you specify (or globally on every route). See the Iron Router docs.
// Show the loading screen on desktop
Router.onBeforeAction('loading', {except: ['welcome']});
Router.onBeforeAction('dataNotFound', {except: ['welcome']});
That also means the required this.next()
isn't happening in each of those and any subsequent onBeforeAction
's probably aren't happening either (which is why the maps API never loads).
I'm having an issue with geocomplete() function being undefined. All I need is an input with autocomplete dropdown to work. Here's the full error I'm getting from Chrome Console:
More info from Safari Console:
I set up my project with iron-router like this:
And my template looks like this: