I have tried to search the world wide web for answers, but can't find any.
I have property in Aurelia like this:
@observable
public _name: boolean = false;
Then uses Aurelias *Changed like this:
public async _nameChanged(): Promise<void> {
//Do stuff
}
Then in the html uses it something like this:
<div value.bind="_name"></div>
Now the question is, how in the world do I do to avoid getting the change method to get called when it is attaching to the viewmodel?
Or to but it simple, is there anyway to configure the Change listener to only listen to changes from the view. Because I am trying out a kind of "autoSaveFeture". And I only want the Change to happen if the user triggers the change from the view.
I do have a solution but that means I have to go away from the aurelia frameworks observable. But before I do that I would like to know if there is any solutions out there that I can't find or is not documented.
Like you could set settings on the @observable flag to only litsen to changes that has triggerd by the view..
If there is any question or Im describing the problem bad please let me know.