I am creating web application similar to gdrive or dropbox, when I navigate through my folders through links, i need to get path in url. I need to change the path from client side itself using angularJS.
e.g
$stateProvider
.state('/root',
{
url: "/root",
templateUrl: "cloud.html"
})
.state('root.___',
{
url: "/root/:path",
templateUrl: "cloud.html"
})
.otherwise({ redirectTo: "/root" });
});
The controller and template need not be changed, only the url need to be changed, look like this
http://mycloud.com/newfolder/newfolder or http://mycloud.com/newfolder/.../.../../folder
How to achieve this in angular js ui-router what need to be filled in the blank space?