Navigation through pages in an application on Ionic does not work. In the view folder put the file qwe.html with the following content: qweqwe In app.js wrote this
.config(function($stateProvider,$urlRouterProvider){ $stateProvider .state('index',{ url:'/', abstract:true, templateUrl:'index.html' }) .state('index.qwe',{ url:'/view/qwe', views:{ 'qwe':{ templateUrl:'view/qwe.html' } } }); }) In index.html this is written:
<body ng-controller="main"> <ion-pane> <ion-header-bar class="bar-stable"> <a href="#/">index</a> <a href="#/view/qwe">qwe</a> </ion-header-bar> <ion-content> <ng-view></ng-view> </ion-content> <div class="bar bar-footer bar-balanced"> </div> </ion-pane> </body> It seems that everything is done as in the numerous documentation on Ionic and Angular, but when you click on the links on the screen, nothing changes. Only the address bar changes. The console on the Network tab shows that the qwe.html file is found. I tried to add 'ngRoute' models to the ad and connect angular-route.js - the outcome is the same. What could be wrong?
ng-viewdirective come from? - Grundy