Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ng-click in text #8

Open
ghost opened this issue Jan 17, 2016 · 2 comments
Open

Using ng-click in text #8

ghost opened this issue Jan 17, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 17, 2016

Hi

I tried to use the ng-click directive within the 'text' property. I set 'html' property to true, so the HTML is being rendered properly, but the ng-click is not working (method not being called). Might be related to the compile process, right? Any chance to make this working?

Example code:

SweetAlert.swal({
          title: 'Test.',
          text: '<div ng-click="shareMail(project)"><i class="fa fa-envelope"></i></div>',
          html: true,
          confirmButtonText: 'Close'
        });

Thanks.

@afterxleep
Copy link

I'm also looking for this. I'm using ng-class and compiling the template with $compile before assigning to the text property of SweetAlert, but ng-click does not work.

Any ideas?

@tushar-borole
Copy link
Owner

@dani-inside @afterxleep can u create plunkr or fiddle to demonstrate ur issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants