Skip to content

Commit

Permalink
Issue #11
Browse files Browse the repository at this point in the history
Wait for the template to load before displaying element informations on page refresh

__________________________________________________

Attente du template à charger avant d'afficher les informations de l'élément lors d'une actualisation de la pahe
  • Loading branch information
regazzoj committed Aug 14, 2018
1 parent 9fc96ab commit 235cc9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/gogocarto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ export class GoGoCartoModule
App.customPopupComponent.initialize();

App.component.initialize();

App.routerModule.loadInitialState();

App.templateModule.elementTemplate.onReady.do(() =>
{
App.routerModule.loadInitialState();
// wait for initial state to be loaded
setTimeout( () => App.elementsJsonModule.loadLocalElements(), 100);
});
Expand Down

0 comments on commit 235cc9b

Please sign in to comment.