I have js file with this
var global_actions ={};
$(document).ready(function () {
myajaxcall(function(response){global_actions=response});
});
I have an elements with template :
<template>
...
<h1>{{global_actions.greetingtext}}</h1>
...
</template>
The problem is that template draw and init before global_actions=myajaxresponse; What do i want 1.Call ajax and fill global_actions 2.Draw elements with databinding to global_actions data; What i got elements draw before myahaxcall(callback);