Skip to content Skip to sidebar Skip to footer

Angularjs Routing Without The Hash '#' - Cannot Get It Work

I have read this post many times, and I have followed the instructions there, but I cannot get this to work. AngularJS routing without the hash '#' I have a Qt app that sends a req

Solution 1:

You also need to add the <base href="/" /> in the <head> of your html page.

Example below.

<!DOCTYPE html><htmlng-app="app"><head><title>My Website</title><basehref="/" /></head><body></body></html>

EDIT

This will take you to a GitHub post with the answer. https://gist.github.com/cjus/b46a243ba610661a7efb

Post a Comment for "Angularjs Routing Without The Hash '#' - Cannot Get It Work"