ionic 加载动作

2017-07-20 18:37:00
<html ng-app="ionicApp">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> 
    <title> </title>

	<link href="" rel="stylesheet">
	<script src=""></script>
	angular.module('ionicApp', ['ionic'])
	.controller('AppCtrl', function($scope, $timeout, $ionicLoading) {

	  // Setup the loader
	    content: 'Loading',
	    animation: 'fade-in',
	    showBackdrop: true,
	    maxWidth: 200,
	    showDelay: 0
	  // Set a timeout to clear loader, however you would actually call the $ionicLoading.hide(); method whenever everything is ready or loaded.
	  $timeout(function () {
	    $scope.stooges = [{name: 'Moe'}, {name: 'Larry'}, {name: 'Curly'}];
	  }, 2000);
  <body ng-controller="AppCtrl">
      <ion-view title="Home">
          <h1 class="title">The Stooges</h1>
        <ion-content has-header="true">
            <ion-item ng-repeat="stooge in stooges" href="#">{{}}</ion-item>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络