mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
33 lines
984 B
HTML
33 lines
984 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.js"></script>
|
|
<script src="../../../../dist/js/ionic-angular.js"></script>
|
|
<script>
|
|
angular.module('ionic.example', ['ionic.service.loading'])
|
|
|
|
.controller('LoadingCtrl', function($scope, Loading) {
|
|
$scope.startLoading = function() {
|
|
var loading = Loading.show({
|
|
width: 200,
|
|
height: 100,
|
|
animation: 'fade-in',
|
|
content: 'Getting current location...'
|
|
});
|
|
};
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|