I\'m working on an application that shows an overview of entities in a datatable. Every entity has linked entities that are shown as \'xxx linked entities\' in a column. When th
There were no errors or warnings but closeOnNavigation: true
started working for me only after adding these providers to the module with the dialog:
import { Location, LocationStrategy, PathLocationStrategy, APP_BASE_HREF } from "@angular/common";
...
providers: [
Location,
{ provide: LocationStrategy, useClass: PathLocationStrategy },
{ provide: APP_BASE_HREF, useValue: '/' }
]
...
I suspect that in my case this was because of using UI-Router and never initializing the built in Angular router before.