My team is trying to do a mobile application with both jquery mobile and angular.js. It seems that they can be a little tricky. We are trying to build a dynamic accordion with jquery mobile but with ng-repeat directive by angular js:
<div data-role="collapsible" ng-repeat="catalog in catalog_list | filter: isDependent">
<h6>
{{ catalog.catalog_name }} <span ng-show="catalog.next"> <a ng-click="changeCurrent(catalog.catalog_id)"> {{ catalog.next }}</a></span>
</h6>
<p>some Content</p>
</div>
</div>
Because jquery mobile works with hashtags and url to make the accordion work, angular is interpreting the url change and causing a page view reload, which means that the collapsible never gets to open. We have tried disabling several jquery mobile features:
$.mobile.hashListeningEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.ajaxEnabled = false;
This does not seem to work for the accordion. It did solve a problem with routing we had before. We have seen there is an adapter for using jqm and angular together but we would rather avoid having to depend on third-party software. Any opinion on wether using angular js and jqm together without an adapter is viable would also be appreciated. Also, if we had to choose to use only one of them for our mobile site, which one would you recommend and why?
Thank you for the help!