Hello Dan
The problem I was trying to sort was an issue with list refresh in
jQuery mobile. I know from reading the mailing list that using jQuery
mobile is not the best recommanded approach but to me jqm is solving
all my needs on the mobile ui aspect.
Main issue with jqm/angular is always around refresh. Angular resolves
its HTML but then you need to tell jqm to do its rendering. For list
you use a listview('refresh') method. I've wrapped those refresh in a
directive jqm-refresh. For my footer, I need different button (create
vs save + delete) depending where I am in my flow. I used
ng-swith/ng-switch-when for conditional display in my footer. As
mention earlier I also added jqm-refresh directive so that the button
label changes AND that jqm renders the <a> link as a button.
But when used before the list is created (angular ng-switch is
resolved), jqm is unhappy an let you know by throwing the classical
exception "cannot call methods on listview prior to initialization"
For that use case I wanted to use priority. I want first to resolve
the ng-switch before the jqm-refresh. Which prioty should I use?
Cheers,
Corinne