I am using the ui-bootstrap module in my AngularJS project. Before I open the modal the url looks like this : localhost:58890/#/Project/46. The code that opens it is here :
$modal.open(modalServices.newItemModal).result.then(function (name) {
var folder = new Item({
id: null,
projectId: ProjectService.project.ID,
name: name,
type: ItemType["Folder"],
contents : null
});
The modalServices.newItemModal settings are here :
var newItemModal = {
templateUrl: '/template/modal/newItem',
controller: 'NewItemController',
backdrop: 'static',
size : 'sm'
};
after the line of code $modal.open the url changes to : localhost:58890/ Is it possible to prevent this, and make the modal act like in the jQuery modal where it doesn't change the url ?
button
) and it does not change the location hash by default – Philipp Jun 18 at 8:43