angularjs - Hard refresh needed to display data in Umbraco.DateTime control -


i have custom section in umbraco, when click node in custom tree, url correctly displayed , data loads successfully.

when click node in tree (sibling, same controller , view)

all data loads...... except data should shown in calender control. if reload page data loads. enter image description here

for testing, created , added control time umbraco.textbox, , data loads correctly

so umbraco.datetime other controls have on same page load drop downs, check boxes etc

is there can in angular(v1.6) controller force these update everytime?

update: code in view looks this.

                            <umb-property property="vm.enddatetimetxt">                             <umb-editor model="vm.enddatetimetxt"></umb-editor>                         </umb-property>                          <umb-property property="vm.startdatetimepropertyeditor">                             <umb-editor model="vm.startdatetimepropertyeditor"></umb-editor>                         </umb-property>                          <umb-property property="vm.enddatetimepropertyeditor">                             <umb-editor model="vm.enddatetimepropertyeditor"></umb-editor>                         </umb-property> 

and umbraco.datepicker controls method genrates property editor

function buildumbracoclockpropertyeditor(alias, editor, view, label, description, config, mandatory = true) {             return {                 editor: "umbraco.datetime",                 label: label,                 description: description,                 hidelabel: false,                 view: view,                 alias: alias,                 value: null,                 validation: {                     mandatory: mandatory,                     pattern: ""                 },                 config: {                     pickdate: true,                     picktime: false,                     useseconds: false,                     format: "yyyy-mm-dd hh:mm:ss",                     icons: {                         time: "icon-time",                         date: "icon-calendar",                         up: "icon-chevron-up",                         down: "icon-chevron-down"                     }                 },             } 

i have updated format of string when loaded in text box before hard refresh.

enter image description here

and after

enter image description here

so can see data there, gets loaded in text box first time click on node, required me go browser address bar , press enter dates load in umbraco.datetime controls.

this nuts! data there, format same... else be!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -