My ng-view and routes are set up for /, /second, /third, and /fourth. The fourth page contains an "edit" button for each entry on a list which triggers an ng-click function to change the text input on that page and console log the changes from an API.
After clicking "edit," it logs the API data, displays the newly assigned text in the field, but then unexpectedly clears the ng-view without showing any content. The URL switches to localhost:4000/#.
However, if I visit #/fourth, then manually change the URL to just localhost:4000/# before clicking edit, it functions correctly.
This issue occurs both in EJS and standard HTML formats, ruling out rendering as the problem. I suspect it's related to Angular specifics.
You can watch a video demonstration of the issue here: https://www.youtube.com/watch?v=c6YeQNyo7P4&feature=youtu.be
Any insights on this matter?
Plunker Update: http://plnkr.co/edit/aIpxBWee8DJX0vgxm3LQ?p=preview