>From my controller A, I'm doing the following -
$window.open("/signals",
"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");//$location,path("/signals");
My routeprovider configuration is as follows -
.when('/signals',{
templateUrl: 'app/views/signals.html',
controller: 'signalsCtrl',
controllerAs : 'signals'
})
My signalsCtrl controller is using a service that returns a list of images
that has to be displayed in a new window - signals.html:
angular.module('myApp').controller('signalsCtrl',
['$scope', '$log', 'criteriaService',
function ($scope, $log, criteriaService) {
var signals=this;
signals.getUrls = function(){
return criteriaService.getUrls()
};
}]);
signals.html just loops through the list using ng-repeat and displays the
images.
The issue is that when I used $location.path("/signals"), it works fine as
a new page opens up in the same window (redirection) when I click a button
on my parents page. But with $window.open it does not work at all. I do not
see my controller (SignalsCtrl) being triggered at all when I try to access
this page using $window.open("/signals").
How can I get this to work?
I considered using a modal also but then I need to have the modal stay open
all the time while the user can work on the parent page. Modals however do
not allow this. And so I am trying to create a new page in a new window but
that doesn't work either.
Any pointers here will be really appreciated.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.