Skip to content

Instantly share code, notes, and snippets.

@Olegas
Created April 29, 2020 19:09
Show Gist options
  • Save Olegas/6d3699b4d675e0f459267d8296fa773d to your computer and use it in GitHub Desktop.
Save Olegas/6d3699b4d675e0f459267d8296fa773d to your computer and use it in GitHub Desktop.
class A extends Control {
protected _x: object = {
val: 1,
_version: 0
}
_doSomthing() {
this._x._version++;
}
<div>
<Hoc1>
<Hoc2>
<ws:partial template="wml!partial" x={{_x}} />
</Hoc2
</Hoc1>
</div>
<div>{{ x.val }}</div>
@SowingSadness
Copy link

По идее просто фейковый атрибут должен помочь

<div>
  <Hoc1  x={{_x}}>
    <Hoc2  x={{_x}}>
      <ws:partial template="wml!partial" x={{_x}} />
    </Hoc2
  </Hoc1>
</div>  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment