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
3
votes
5 answers

ngDialog - how to close dialog from the template (i.e. no controller functions)?

On ngDialog (https://github.com/likeastore/ngDialog), is there a built in way to close a dialog from within the template it self? I.e. so I don't need any functions in the controller calling the dialog? This is my template (errorPopup.html):
3
votes
2 answers

Uncaught Error: [$injector:cdep] use ngdialog in factory

I want to use ngdialog to do with the 401 status, but I get the error:Uncaught Error: [$injector:cdep] angular.module('ws.site.master', [ 'ngResource', 'ngCookies', 'ngSanitize', 'ngAnimate', 'ui.router', …
wu.wu
  • 31
  • 2
3
votes
1 answer

ngDialog stays in closing state until mouse movement stops

I am using the ngDialog angular directive and testing in Chrome. If you look at the DOM (using Chrome tools), you will notice that when you close the ngDialog it will remain in the "ngdialog-closing" state until mouse movement stops. The DIV overlay…
What-About-Bob
  • 649
  • 5
  • 13
3
votes
3 answers

Automatically close ngDialog

To automatically close a ngDialog after the successful login, I used the below approach. HTML template, Log In In the…
Saravanan Sachi
  • 2,572
  • 5
  • 33
  • 42
3
votes
1 answer

Function Automatically Called Inside Javascript Promise

I'm fairly new to Javascript promises, and running into an issue that I can't hunt down anything about via Google or Stack Exchange. When I refer to a function in a .then chained off a promise, I sometimes have to wrap that function in an anonymous…
nwebb
  • 33
  • 2
2
votes
3 answers

Validate form within ngDialog openConfirm before closing

I have a button that opens an ngDialog.openConfirm. Within that dialog I have a form, which includes a textarea which is required and needs to be a minimum 20 characters. Here is a simplified version of my code: someFunction() { let newScope =…
DeejC
  • 117
  • 13
2
votes
1 answer

Make ngDialog draggable AngularJs jQueryUI

I am wanting to make ngDialog draggable, using jQueryUI, or just Angular (preferred). Here is an example of the modal becoming draggable using jQueryUI: JSFiddle (Modal) $(".modal").draggable({ handle: ".modal-header" }); I tried to replicate…
Ali
  • 558
  • 7
  • 28
2
votes
1 answer

Angular material select display under dialog

i'm having a weird issue and don't know the way of solve it. i have a dialog generated by ngDialog and inside this dialog i have the md-select but it doesn't display properly. It show under the dialog doing the select unreadable or clickeable is…
Paulo Galdo Sandoval
  • 2,173
  • 6
  • 27
  • 44
2
votes
1 answer

ngDialog ignore NG attribute within forms in AngularJS 1.5

i have this call inside a controller Directive ngDialog.openConfirm({ template : '', plain : true, closeByNavigation : true, scope : $scope }) …
2
votes
2 answers

Multiple panes in ngDialog Modal for Angular

In the example for ngDialog they show a modal that has multiple 'panes' that you can scroll through: http://likeastore.github.io/ngDialog/. I read through the ngDialog guide and couldn't find an easy way to accomplish this - any ideas would be…
Luke Schunk
  • 241
  • 2
  • 13
2
votes
1 answer

how to find html file in ngDialog template with webpack?

Hello I have a problem while trying to use webpack to bunlde my files and ngDialog to get a popup to work. the popup will only show a "Hello!" message right now. This is my function: function popupEditOptions(){ ngDialog.open({ template:…
Samuel
  • 137
  • 1
  • 16
2
votes
2 answers

what will happen to child scope if its parent scope is destroyed

I want to ask if the parent scope destroy, does the child scope will also be destroy? I ask this question is because i'm using the ngdialog to create some modal dialogs. There are 2 dialogs, A -> B, we can open dialog A from a web page, and dialog…
huan feng
  • 7,307
  • 2
  • 32
  • 56
2
votes
2 answers

Is it possible to disable closing in ng-dialog in angular js?

What I am trying is, to disable the action of close in ng-dialog pop up until any other button is clicked.I want to do that until I give some text on input in pop up and click on save button the pop up should not be closed either by into (*) mark
Vindya Veer
  • 139
  • 1
  • 3
  • 15
2
votes
1 answer

AngularJS ngDialog error

I have added ngDialog to my angularjs app, and upon injecting it to my module this is what I got: Uncaught Error: Mismatched anonymous define() module: function (a){"use strict";var…
sisimh
  • 1,287
  • 3
  • 20
  • 37
2
votes
1 answer

How can I use input textbox value in the ng-template script tag of same angularjs page

I have a email textbox in my angularjs page like this:
Suresh Kota
  • 305
  • 1
  • 6
  • 19
1
2
3
10 11