<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/ionic.css" />
<script type="text/javascript" src="js/ionic.bundle.min.js" ></script>
<script>
var app = angular.module("myApp", ['ionic']);
app.controller("myCtrl", function($scope) {
$scope.user = ["张三","李四","王五"];
$scope.settings = ["我的菜单","我的关注","我的粉丝","我的收藏"];
$scope.rights = ["长生界","神墓","完美世界","遮天"];
});
</script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<ion-side-menus style="width:30%;height: 90%;margin: 0 auto;border: 1px solid black;">
<!-- 中间内容 -->
<ion-side-menu-content>
<ion-header-bar align-title="center" class="bar-positive">
<h1 class="title">这是首页</h1>
</ion-header-bar>
<ion-content style="text-align: center;">
<ion-list>
<ion-item ng-repeat="item in user">
Hello, {{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu-content>
<!-- 左侧菜单 -->
<ion-side-menu side="left">
<ion-header-bar align-title="left" class="bar-light">
<h1 class="title">左侧菜单</h1>
</ion-header-bar>
<ion-content>
<ion-list>
<ion-item ng-repeat="item in settings">
Hello, {{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
<!-- 右侧菜单 -->
<ion-side-menu side="right">
<ion-header-bar align-title="right" class="bar-light">
<h1 class="title">右侧菜单</h1>
</ion-header-bar>
<ion-content style="text-align: right;">
<ion-list>
<ion-item ng-repeat="item in rights">
{{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/ionic.css" />
<script type="text/javascript" src="js/ionic.bundle.min.js" ></script>
<script>
var app = angular.module("myApp", ['ionic']);
app.controller("myCtrl", function($scope) {
$scope.user = ["张三","李四","王五"];
$scope.settings = ["我的菜单","我的关注","我的粉丝","我的收藏"];
$scope.rights = ["长生界","神墓","完美世界","遮天"];
});
</script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<ion-side-menus style="width:30%;height: 90%;margin: 0 auto;border: 1px solid black;">
<!-- 中间内容 -->
<ion-side-menu-content>
<ion-header-bar align-title="center" class="bar-positive">
<h1 class="title">这是首页</h1>
</ion-header-bar>
<ion-content style="text-align: center;">
<ion-list>
<ion-item ng-repeat="item in user">
Hello, {{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu-content>
<!-- 左侧菜单 -->
<ion-side-menu side="left">
<ion-header-bar align-title="left" class="bar-light">
<h1 class="title">左侧菜单</h1>
</ion-header-bar>
<ion-content>
<ion-list>
<ion-item ng-repeat="item in settings">
Hello, {{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
<!-- 右侧菜单 -->
<ion-side-menu side="right">
<ion-header-bar align-title="right" class="bar-light">
<h1 class="title">右侧菜单</h1>
</ion-header-bar>
<ion-content style="text-align: right;">
<ion-list>
<ion-item ng-repeat="item in rights">
{{item}}!
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</body>
</html>