案例:ionic案例     状态:可编辑再运行    进入竖版
 运行结果 
x
          <p>101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.</p>
 
1
<html ng-app="ionicApp">
2
  <head>
3
    <meta charset="utf-8">
4
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
5
    
6
    <title>W3xue教程(w3xue.com)</title>
7
    <link href="https://cdn.bootcss.com/ionic/1.3.2/css/ionic.css" rel="stylesheet">
8
    <script src="https://cdn.bootcss.com/ionic/1.3.2/js/ionic.bundle.min.js"></script>
9
    <script type="text/javascript">
10
      angular.module('ionicApp', ['ionic'])
11
12
    .config(function($stateProvider, $urlRouterProvider) {
13
14
      $stateProvider
15
        .state('tabs', {
16
          url: "/tab",
17
          abstract: true,
18
          templateUrl: "templates/tabs.html"
19
        })
20
        .state('tabs.home', {
21
          url: "/home",
22
          views: {
23
            'home-tab': {
24
              templateUrl: "templates/home.html",
25
              controller: 'HomeTabCtrl'
26
            }
27
          }
28
        })
29
        .state('tabs.facts', {
30
          url: "/facts",
31
          views: {
32
            'home-tab': {
33
              templateUrl: "templates/facts.html"
34
            }
35
          }
36
        })
37
        .state('tabs.facts2', {
38
          url: "/facts2",
39
          views: {
40
            'home-tab': {
41
              templateUrl: "templates/facts2.html"
42
            }
43
          }
44
        })
45
        .state('tabs.about', {
46
          url: "/about",
47
          views: {
48
            'about-tab': {