function getPageContent(localeKey, pageKey, varToPopulate) {
var contentRequest = {
LocaleKey: localeKey,
PageKey: pageKey
};
$.getJSON('api/pagecontent', contentRequest, function (data) {
varToPopulate.pushAll(data.ContentElements);
When I change the locale key I need it to repopulate and have the UI update too. However I don't know how to get that to work (oh, and 'subscribe' would be lovely!)
Simple code
When I change the locale key I need it to repopulate and have the UI update too. However I don't know how to get that to work (oh, and 'subscribe' would be lovely!)