mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
31 lines
786 B
HTML
31 lines
786 B
HTML
|
|
<!DOCTYPE html>
|
|
<html ng-app="ionic">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
|
|
|
|
<title>Sample UL</title>
|
|
|
|
<link href="/dist/css/ionic.css" rel="stylesheet">
|
|
<script src="/dist/js/ionic.bundle.js"></script>
|
|
</head>
|
|
|
|
<body ng-controller="MainCtrl">
|
|
<ion-content direction="y">
|
|
<img
|
|
collection-repeat="item in items"
|
|
item-width="33%"
|
|
item-height="33%"
|
|
ng-src="http://lorempixel.com/180/180?q={{$index}}">
|
|
</ion-content>
|
|
<script>
|
|
angular.module('ionic').controller('MainCtrl',MainCtrl)
|
|
function MainCtrl($scope) {
|
|
$scope.items = [];
|
|
for (var i = 0; i < 10000; i++) $scope.items.push(i);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|