Hi,
I am new with ionic and wanted to try the ion-nav-view. Why those files/code does not display my sitesView? What am I missing? Big Thanks!
index.html
<script src="js/app.js"></script>
<body ng-app="myApp">
<ion-nav-view animation="slide-left-right"></ion-nav-view>
</body>
js/app.js
var myApp = angular.module('myApp', ['ionic']);
myApp .config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('sitesView', {
url: "/sitesView",
templateUrl: "Views/sitesView.html",
controller: "Controllers/SitesViewCtrl"
});
$urlRouterProvider.otherwise("/sitesView");
});
js/Views/sitesView.html
<ion-view title="Sites">
<ion-header-bar class="bar-header bar-balanced ">
<h1 class="title">Sites</h1>
</ion-header-bar>
<ion-content>
<div class="list card">
<a href="#" class="item item-icon-left item-icon-right">
<i class="icon ion-home"></i>
Site #1
<i class="icon ion-ios7-arrow-right"></i>
</a>
<a href="#" class="item item-icon-left item-icon-right">
<i class="icon ion-home"></i>
Site #2
<i class="icon ion-ios7-arrow-right"></i>
</a>
<a href="#" class="item item-icon-left item-icon-right">
<i class="icon ion-home"></i>
Site #3
<i class="icon ion-ios7-arrow-right"></i>
</a>
<a href="#" class="item item-icon-left item-icon-right">
<i class="icon ion-home"></i>
Site #4
<i class="icon ion-ios7-arrow-right"></i>
</a>
</div>
</ion-content>
</ion-view>