Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49375

@IonicPage & @Component - how to use both?

$
0
0

@movadee wrote:

Hello! I am setting up a project with lazy loading and dynamic links. I am finding documentation on IonicPage somewhat confusing. I’ve tried few options I had in mind for metadata, but still no luck. Here is a code that is not working because segment and defaultHistory is supposed to be inside of IonicPage and templateUrl is supposed to be inside Component. Any thoughts?

@IonicPage({
  segment: 'detail/:id',
  defaultHistory: ['list']
})
@Component({
  templateUrl: 'detail.html'
})

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49375

Trending Articles



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