Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular back button on index page - how to hide it?

Hi,
I've added a back button to my app, and it works fine using the backButton directive. However, the button is displayed on the homepage, which I don't want.

The button is in the index view header, so present in all pages.

I've tried using ng-hide="hideBackButton", and then setting $scope.hideBackButton to true / false on various pages, but it seems to make no difference.

Can you help please?
Regards,
Andy

zaik
Posts: 0
Joined: Wed Sep 09, 2015 7:15 am

Angular back button on index page - how to hide it?

You have to create scope variable in index page with its type set as boolean.

Then you just have to set value of that variable true or false.

You dont need to declare it again on each page.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular back button on index page - how to hide it?

Hmm. I tried that, but ended up taking the code back out again.

I'll re-try it, and share screenshots and/or share the project with support if I still can't get it working.

Thanks Zaik,

Andy

Return to “Issues”