i've tried ngroute
and remove #
from default url angular with this way:
I added this line into my config routeProvider
:
if(window.history && window.history.pushState){
$locationProvider.html5Mode(true);
}
and put inside <head>
like this :
<base href="/inventoryApp/">
this way correctly and work, but i must opened url from base localhost:2205/inventoryApp
, and i have link transaksi
and worked if i click that, but if i opened directly from localhost:2205/inventoryApp/transaksi
and i get below error -
status object not found
Aucun commentaire:
Enregistrer un commentaire