mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
30 lines
870 B
HTML
30 lines
870 B
HTML
<html ng-app="ionic.example">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Loading</title>
|
|
|
|
<!-- Sets initial viewport load and disables zooming -->
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
|
|
<link rel="stylesheet" href="../../../../dist/css/ionic.css">
|
|
|
|
</head>
|
|
<body ng-controller="LoadingCtrl">
|
|
<button class="button button-dark" ng-click="startLoading()">Load</button>
|
|
<script src="../../../../dist/js/ionic.bundle.js"></script>
|
|
<script>
|
|
angular.module('ionic.example', ['ionic'])
|
|
|
|
.controller('LoadingCtrl', function($scope, $ionicLoading) {
|
|
$scope.startLoading = function() {
|
|
window.loader = $ionicLoading.show({
|
|
template: 'Getting current location...',
|
|
duration: 4000
|
|
});
|
|
};
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|