var app=angular.module('starter', ['ionic'])
.controller("todo",function($scope,$state){
$scope.go = function(az){
$state.go(az);
};
});
app.config(function($stateProvider) {
$stateProvider
.state("novel", {
templateUrl: "novel.html"
})
.state("main", {
templateUrl: "main.html"
});
})
<body ng-controller="todo">
<ion-side-menus>
<pre name="code" class="html"><!-- 左侧边栏 -->
<ion-side-menu side="left" width="240" type="text/ng-template"> <div class="bar bar-header bar-positive"> <h1 class="title">xxxx</h1> </div> <div class="scroll-content has-header"> <div class="