How to set defaultHistory @IonicPage()


#1

I am currently exploring Ionic for an app i am building. I am trying to have defaultHistory for certain pages. But the loaded page doesnt have any back button. I tried giving componentNames as strings for @IonicPage.

@IonicPage({
    defaultHistory: ['ComponentName']
})

Am i doing it right? Or only strings that are declared as ‘name’ in @IonicPage() should be used?

Please help.