Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Navigate around ionic page

$
0
0

@mankinchi wrote:

Hi, I have a problem with navigating around my single-page app.

This is my current code:

html code:

<a href="venue">
      <img class="photo" ng-src="{{venue.path}}">
</a>

app.js code:

.config (function($stateProvider, $urlRouterProvider) {
  $stateProvider

  .state('tab', {
    url: '/tab',
    abstract: true,
    templateUrl: 'templates/tabs.html'
  })

  .state('tab.venue', {
    url: '/venue',
    views: {
      'tab-venue': {
        templateUrl: 'templates/tab-venue.html'
      }
    }
  })

But when I click the picture, it keeps poping up Cannot GET /venue. Why doesn't it check the web address to move to the state tab.venue?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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