AngularJS + jQuery Mobile w/ No Adapter & Disabled Routing - Used For UI Styling Only

前端 未结 5 944
情歌与酒
情歌与酒 2020-12-13 17:04

I am learning AngularJS and have built a small application. Now that it\'s functionally complete, I\'d like to style it up using jQuery Mobile.

Originally I dropped

5条回答
  •  悲哀的现实
    2020-12-13 17:20

    I'm pretty much working on the same thing (no jqm angular adapter). Here's my directive that gets triggered after the last element of the repeat:

    Application.Directives.directive('jqmCollapsibleRepeat', function () {
      return function (scope, element, attrs) {
        if (scope.$last) {
            $(element).parent().trigger("create");
        }
      };
    });
    

    and here's part of my view that uses it:

    {{document.FileName}}

    ...

提交回复
热议问题