javascript - Using jQuery Mobile Adapter in AngularJS - Applying jqmCompatMode false to Enable Angular Routing -
I am learning AngularJS and have created a small application. Now that it's done functionally, I want to make it style using jQuery Mobile.
I have dropped in the results of Tigre and, as my known result, none of my previous ways is working.
A solution is outlined, but unfortunately, I still do not understand how to implement it for my routing. Where would the module.config line go to go to set jqmCompatMode?
My routes look like this:
Angular Module ('myApp', []). Config (['$ routeProvider', function ($ migration provider), {$ routeProvider. ('/ Finds', {templateUrl:' views / find-list.html ', controller: FindListCtrl}) when (' / add_find 'When {template / url:' views / add-find.html ', Controller: AddFindCtrl}), when' {add_find / success', {templateUrl: 'views / add-find-success.html', Controller: AddFindSuccessCtrl}) ('/ Find /: findId', {templateUrl: 'views / specific-find.html', Controller: SpecialField Ctrl}). When ('Find / Edit / Success', {templateUrl:' views / edit- ('/ Find / delete /: / find / edit /: findId', {templateUrl: search-success ('/ Find / delete /: / views / edit-find.html', Controller: edit FindCtrl} 'Views / edit-find.html', Controller: NO Adit in FindCtrl}). FindId ', {templateUrl:' views / delete-find.html ', Controller: DeleteFindCtrl}). Otherwise ({redirectTo:' / finds'});}]); Thanks a lot!
It has a rememporary typo, what does that mean, you have $ locationProvider needs to inject, and set the $ locationProvider.jqmCompatMode (false); . I sent
Example: App.config (function ($ route provider, $ location provider) {$ routeProvider.when (.. ..); $ locationProvider .jqmCompatMode (wrong);});
Comments
Post a Comment