Hi All…
Do u guys got any idea to separate the “ion-side-menu-content” and “ion-side-menu” to external html file?
I am developing a ionic app that with a side menu on the left on every pages of the app.
In my index.html.
I use to separate the of each pages.
Do u guys got any idea to separate the to external html file sth like ?
My index.html code as follow:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="cordova.js"></script>
<script src="lib/ionic/js/angular/angular-resource.js"></script>
<script src="js/app.js"></script>
</head>
<body ng-app="mainApp" ng-controller="viewsController">
<ion-pane >
<ion-side-menus enable-menu-with-back-views="true">
<!--side menu content-->
<ion-side-menu-content drag-content="isDragSideMenu">
<ion-nav-bar class="bar-stable">
<ion-nav-buttons side="left">
<button menu-toggle="left" ng-show="isShowSideMenuButton"
class="button button-icon button-clear ion-navicon">
</button>
</ion-nav-buttons>
<ion-nav-back-button></ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view ></ion-nav-view>
</ion-side-menu-content>
<!--side menu menu content How to separate to external html???????-->
<ion-side-menu side="left">
<ion-header-bar class="bar-stable">
<h1 class="title">Menu</h1>
</ion-header-bar>
<ion-content>
<ion-list>
<ion-item menu-close href="#/home">Home</ion-item>
<ion-item menu-close href="#/setting">Setting</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</ion-pane>
</body>
</html>