ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

Adding feature for passing arg as an variable to html body

Open yershalom opened this issue 7 years ago • 1 comments

  • I'm submitting a ... [ ] bug report [*] feature request [ ] question about the decisions made in the repository

I'm adding my plnkr example here.

http://plnkr.co/edit/O478lPqMuwnKbYc3SxHf?p=preview

I have added an arg for onClick method. When I want to see the arg in the modal it return the template. For example: instead of onClick() i want to pass onClick('shalom') and than in the template (body) i'm adding {{name}} and all I get is {{name}}.

My Plnkr example is much better...

yershalom avatar Mar 28 '17 09:03 yershalom

I managed to do it by using this code:

.body(`<h4> Please tell us why you are closing your connection with ` 
       + this.fbProfile.firstName + `? </h4> `)
                .okBtn('Close Connection')

laura2489 avatar Mar 31 '17 08:03 laura2489