What determines the execution order of 'set' in TypeScript?

I have the following code:

....
set whatEver(){
}

set whatEver2(){
}

and I load my Component as follows:

@Component({
...
properties: [
'whatEver:whatEver',
'whatEver2:whatEver2'
]
})

I am wondering what exactly orders the dialing order? In my more advanced application, any2 is called before any.

In my DOM, the order is as follows:

Any ideas?

+4
source share
1 answer

I would suggest that this order in the DOM is not in the definition of the component.

<what-ever [whatEver]="foo" [whatEver2]="bar">
0
source

Source: https://habr.com/ru/post/1629862/


All Articles