In the current project, I am working on implementing a modal window for the edit screen functionality. The process involves displaying a list of items on the screen, from which users can select one row and then click on the modify button to open the edit screen in a modal window. When opening the normal screen, the following code is used:
$location.path(url) (i.e) url --> page1/:id --> page1/3
This method works perfectly fine as it redirects to the corresponding page along with its data.
However, when dealing with modal windows, the following code snippet is used:
exDialog.openPrime({
scope: $scope,
template: urlAppBase+templateurl,
controller: controllerName,
width: '1120px',
animation: false,
grayBackground: false
});
The question arises about how to send parameter values to the controller or how to open a modal window based on a specific URL?