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

前端 未结 5 940
情歌与酒
情歌与酒 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:46

    For me this worked:

    html:

    • {{name}}

    js:

    angular.module('alertList', [])
        .directive('liJqMobile', function() {
            return function($scope, el) {
                $scope.$on('$viewContentLoaded', el.parent().listview('refresh'));
        });
    

提交回复
热议问题