我有这个问题,当我在网络浏览器上打开,但在我的android智能手机上打开时没有工作。ng-href从json打开页面不工作在应用程序
<ion-list>
<ion-item class="list" >
<a class="item item-thumbnail-left" ng-href="{{x.Adress}}" ng-repeat="x in names|orderBy:'Name'" >
<img ng-src="{{x.Image}}">
<h2>{{x.Name}}</h2>
<p>{{x.Local}}</p>
<p>{{x.Descri}}</p>
</a>
</ion-item>
</ion-list>
.controller('PlaylistsCtrl', function($scope, $http) {
$http.get("patrocinadores.json")
.success(function (response)
{
$scope.names = response;
});
})
你有错误? – AshBringer
请加上控制器。 “名称”的外观如何? –
在我的浏览器上返回0错误 – Sobucki