I’m having trouble getting my route working. It looks like this:
// www/js/app.js
.state('test', {
url: '/test',
views: {
'test-template': {
templateUrl : 'templates/test-template.html',
controller : 'TestCtrl'
}
}
})
I have a file called test-template in the template folder, right under www. It looks like this:
<!-- www/templates/test-template.html -->
<ion-view view-title="test-template">
<ion-content class="padding">
big test
</ion-content>
</ion-view>
When I go to /test though, I always get a blank page with no tabs, no nothing. What am I doing wrong?
Also, when I add a tab that links to /test; it keeps whatever title is there, but does not show me any templates. There are no errors in the console. If I put a console.log in the TestCtrl controller, I don’t see it in console…