Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
790
igDialog with Angular
posted

Hi,

I am using igDialog with Angular.

How can i open the igDialog on mouse click only?

Parents
No Data
Reply
  • 10685
    Suggested Answer
    Offline posted

    Hello, 

    I am attaching a code sample illustrating this approach. It contains two buttons and two igDialog instances.
    It is possible to initialize the igDialog using Angular directives and setting the state option to be closed like    
    <ig-dialog id="angularJS_igDialog" header-text="AngularJS Dialog" height="325px" state="closed">

    This way when rendering the document, the igDialog will not be visible and when interacting with the buttons, respectively Show Dialog for the usual jQuery based igDialog implementation and Show AngularJS Dialog for the Angular declared one, you will observe the expected behavior.  http://jsfiddle.net/zcL5hmuz/3/

Children