I think you should consider changing the event names to match the control, for example onListViewLoaded or something.
I used snippets for page and listview and both were firing my "onLoaded" function even though i was intending it for the page load. Took me a while to debug this, realized afterwards I could see the problem in the call stack but I am learning nativescript and it wasn't readily apparent why the function was being called twice when the page loaded. I figured i was doing my navigation wrong or something.
I think you should consider changing the event names to match the control, for example onListViewLoaded or something.
I used snippets for page and listview and both were firing my "onLoaded" function even though i was intending it for the page load. Took me a while to debug this, realized afterwards I could see the problem in the call stack but I am learning nativescript and it wasn't readily apparent why the function was being called twice when the page loaded. I figured i was doing my navigation wrong or something.