Questions tagged [ng-dialog]

ngDialog is a modal and popup provider for Angular.js. It aims to be minimalistic, easily theme-able, and dependency-free. Use this tag for questions related to the use of ngDialog.

ngDialog is licensed under the MIT license. More information, including a demo, is available on the ngDialog website.

161 questions
10
votes
2 answers

ngDialog $scope variables not being updated by ngModel fields in $dialog when using scope: $scope

I have a controller that creates a dialog with ngDialog.open. I assign scope:$scope and set scope variables with ng-model in the popup $dialog. However the values are not set in the controller $scope. The ng-click function is able to call a…
howserss
  • 1,139
  • 1
  • 8
  • 12
10
votes
1 answer

How to make changes made in ngDialog modal appear on main page

I'm new to both AngularJs and ngDialog, and I'm having trouble getting my bindings to work between the ngDialog modal and my controller. I injected the controller's scope into the modal by specifying { scope: $scope }, and I have access to methods…
Brent Klein
  • 170
  • 1
  • 1
  • 13
9
votes
1 answer

send variables to controller('resolve') in ngDialog

Simple way of opening modal with ngDialog is this: ngDialog.open({ template: 'template.html', controller: 'someCtrl' }) How can I send variables to that 'someCtrl'? Is there such thing as 'resolve' in ngDialog? Example from…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
8
votes
1 answer

ngDialog not programmatically closing on IE but works on Chrome

I have a site that allows a person to import some data. They click a button, and the file select opens and they select a file. When they select a file I open a dialog that they can't close that tells them their data is being imported. Once I get the…
user441521
  • 6,942
  • 23
  • 88
  • 160
8
votes
1 answer

confirm modal using ngDialog

I am using ngDialog in my application and I would like to create a generic confirm modal , which I can use whenever I need , the confirm message is going to be different . My questions : 1- Is creating a directive with the ngDialog functionality a…
sisimh
  • 1,287
  • 3
  • 20
  • 37
8
votes
2 answers

How can I set dialog width in ngDialog

I'm simply trying to set the width of the dialog box, and I haven't succeeded (yet). I have added a CSS class, but the width set is the one of the dialog shade. .dialogwidth800 { width : 800px; } ... ngDialog.openConfirm({ template:…
GuillaumeS
  • 407
  • 1
  • 6
  • 16
7
votes
3 answers

ngDialog - closeModal event - angularjs

Is there any event that fires when the popup is closed. The modal opens on a click event. The modal has a close button, but also gets closed when user clicks anywhere outside the modal div. Would like to perform some actions, whenever the popup is…
sukesh
  • 2,379
  • 12
  • 56
  • 111
6
votes
2 answers

Not able to pass scope to dialog in angular

I am displaying a list of images using Angular. When an image is clicked I want to display a dialog with the image and more info. So when opening the modal I need to pass the scope, or at least, the image. Note: I am using ngDialog for the popup. …
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
5
votes
1 answer

Angular Material Dialog popup not showing

So when I click the button, my whole browser window goes black and there isn't any popup showing up. When I inspect element. I can see the outline of the pop up when my mouse hover overs it but the content is not…
Zach Turner
  • 55
  • 1
  • 5
5
votes
2 answers

ngDialog positioning and sizing

I am working on a popup window using ngDialog. Here is some code: Template
Mark
  • 4,535
  • 7
  • 39
  • 76
5
votes
2 answers

How to set scope property of NgDialog when using controllerAs syntax

Hi I have StudentController as follows, function StudentController($scope,StudentService){ $scope.student = StudentService. getStudent(); $scope.editStudent = function(){ return ngDialog.openConfirm({ template:…
JPS
  • 2,730
  • 5
  • 32
  • 54
4
votes
5 answers

How to close a ngDialog from angular controller

I need to open multiple ngDialog with same id, when clicking the close button it should close only the currently opened ngDialog. For closing ngDialog I need to call one event which collects the data then closes the ngDialog.
user2021347
  • 69
  • 1
  • 1
  • 3
3
votes
2 answers

how to pass back the data from dialog to controller in angularjs?

below is my first controller .controller('configManagementCtrl', ['$scope', 'deConfigService', 'ngDialog', '$state', 'notificationService', function ($scope, deConfigService, ngDialog, $state, notificationService) { $scope.loadDetails…
VIK6Galado
  • 650
  • 14
  • 32
3
votes
2 answers

Angularjs: ngDialog only binds and modifies with objects; not basic variables.

I've already found a "solution" to this problem; I was just hoping someone might be able to provide a reason why it works. This jsFiddle demonstrates the problem: http://jsfiddle.net/s1ca0h9x/137/ HTML
3
votes
2 answers

Jwplayer - Error: jwplayer(...).setup is not a function

I have to show jwplayer in a popup, for popups I am using ngDialog(angular), code for ngDialog is below: $scope.showVideoPlayerPopup = function(video_path) { $scope.ngDialog = ngDialog; ngDialog.open({ animation:…
Always_a_learner
  • 4,585
  • 13
  • 63
  • 112
1
2 3
10 11