Custom Title : slideBox links in title


#1

Hey guys!

I’m having trouble wrapping my head around an issue I have : I’m trying to create a custom title in my ion-nav-bar which will be links to slide in my slidebox.

A codepen is worth a thousand words :

As you can see, I pass my title as a variable containing my list of links, with an ng-click to set feed to timeline or explore. Clicking on both those link won’t do a thing, and this is where I’m stuck :

  • How come the $scope.slideIndex is undefined in my ion-nav-bar (when $scope.title is defined)?
  • How to make those links work?

Thanks a lot for your help!