0

I have an ionic project that I want to append '/room' to the current url on the click of a button. This is in a template that is the view for many pages. I want to add /room to the end of each url. Ive tried many things and would love some help.

I am not using states because this is a deep nested view and need to use the change the URL. thanks

<button onclick="$location.path() + '/room'> Add /room to url </button >
bigD
  • 11
  • 6
  • No its not. Totally different. – bigD Apr 18 '16 at 00:24
  • This may help you http://stackoverflow.com/a/21328170/3279156 – sreeramu Apr 18 '16 at 00:39
  • thanks but none of those work given how deep this state is and its not hosted on a server so the code wouldnt work with ios and android(files paths).. thats why I just want to append to the current – bigD Apr 18 '16 at 00:49

0 Answers0