I have a simple AngularJS application where I redirect to a specific partial on every routing request. Here is an example of how it's done:
.state('updateorder', {
url : '/updateorder',
templateUrl: 'partialviews/updateorder.html',
controller: 'Distributor3Controller'
})
From the code snippet above, you can see that when a request is made for updateorder, it redirects to updateorder.html.
My issue is that in my requirement, I need to display updateorder.html as a popup while still keeping it related to AngularJS. This means I cannot use something like window.open(...).
My questions are:
1) Can this be achieved? If so, how?
2) Is this considered good practice?