<title></title>
<link rel="stylesheet" href="../ionic/css/ionic.css" />
<script type="text/javascript" src="../ionic/js/ionic.bundle.min.js" ></script>
<script>
var app = angular.module("myApp",['ionic']);
app.controller("myCtrl",function($scope,$ionicScrollDelegate){
$scope.name = "张三";
$scope.scrollTop = function(){
$ionicScrollDelegate.scrollTop();
};
});
</script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<ion-header-bar align-title="center" class="bar-positive">
<div class="buttons">
<button class="button" ng-click="doSomething()">Left Button</button>
</div>
<h1 class="title">Title!</h1>
<div class="buttons">
<button class="button">Right Button</button>
</div>
</ion-header-bar>
<ion-content padding="true" scroll='true'>
Some content!
<pre>
最上
123
最下
<button ng-click="scrollTop()">滚动到顶部!</button>
</pre>
</ion-content>
</body>
<link rel="stylesheet" href="../ionic/css/ionic.css" />
<script type="text/javascript" src="../ionic/js/ionic.bundle.min.js" ></script>
<script>
var app = angular.module("myApp",['ionic']);
app.controller("myCtrl",function($scope,$ionicScrollDelegate){
$scope.name = "张三";
$scope.scrollTop = function(){
$ionicScrollDelegate.scrollTop();
};
});
</script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<ion-header-bar align-title="center" class="bar-positive">
<div class="buttons">
<button class="button" ng-click="doSomething()">Left Button</button>
</div>
<h1 class="title">Title!</h1>
<div class="buttons">
<button class="button">Right Button</button>
</div>
</ion-header-bar>
<ion-content padding="true" scroll='true'>
Some content!
<pre>
最上
123
最下
<button ng-click="scrollTop()">滚动到顶部!</button>
</pre>
</ion-content>
</body>