AngularJS + jQuery Mobile

前端 未结 2 2056
有刺的猬
有刺的猬 2021-02-15 12:04

Are there other possibilities to style an AngularJS application in a mobile friendly way than CSS?

I am planning a mobile app and want to use A

2条回答
  •  日久生厌
    2021-02-15 12:57

    A very basic example:

    html:

    
        
    
    

    js:

    var app = angular.module('myApp', []);
    
    app.controller('myCtrl', function ($scope) {
        $scope.cars = [
            'acura', 'audi', 'BMW'
        ];
    });
    

    working demo: http://jsfiddle.net/eZdNm/

    The main problem with jQuery mobile and AngularJS is they both want to control page routing. You can find out more by searchng jQuery mobile and Angular in google.

    Yes, if you only want a ready to go / mobile friendly UI. I would suggest other more CSS based frameworks such as bootstrap.

提交回复
热议问题