App.js:Rufen Sie AngularJS RouteProvider Controller von Javascript window.open?
angular.module('Note', []);
angular.module('MyProj', ['Note'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/note/viewNotes/:Id', {
controller: 'viewNotesCtrl',
templateUrl: 'web/modules/note/views/viewNotes.html'
})
Ich möchte die 'viewNotesCtrl' von einem Pop-up aufzurufen, die
var myWindow = window.open("", "", "width=200,height=100");
ViewNotesCtrl.js
$scope.showViewNotes = function() {
//$window.open('/note/viewNotes/' + $scope.Id, 'width=500,height=400');
}
typische Javascript Pop-up ist Aber das funktioniert nicht. Kann mir bitte jemand vorschlagen, wie ich die ViewNotesCtrl mit Javascript Pop-Up aufrufen kann?