Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Newbie, simple sidemenu and content

$
0
0

Hi,

I am trying to start a very simple app from scratch and I can't get my head around a view / controller issue. My app is not showing the about.html (defined as the default route) and it does not do it when I tap the About item in the side menu.
index.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">
<link href="css/style.css" rel="stylesheet">
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="cordova.js"></script>
<script src="js/app.js"></script>
<script src="js/aboutController.js"></script>
</head>
<body ng-app="playApp">
<ion-side-menus>
<!-- Center content -->
<ion-side-menu-content>
<!-- <ion-header-bar class="bar-dark">
<h1 class="title">Test</h1>
</ion-header-bar> -->
<ion-nav-view>
<ion-view name="main-view" animation="slide-left-right"></ion-view>
</ion-nav-view>
</ion-side-menu-content>
<!-- Left menu -->
<ion-side-menu side="left">
<ion-header-bar class="bar-dark">
<h1 class="title">Projects</h1>
</ion-header-bar>
<ion-content has-header="true">
<ion-list>
<ion-item href="#/" menu-close>Home</ion-item>
<ion-item href="#/about" menu-close>About</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</body>
</html>


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>