kevcjones / ngx-simple-modal

A simple unopinionated framework to implement simple modal based behaviour in angular (v2+) projects.
MIT License
52 stars 27 forks source link

Passing data example #83

Closed BenRacicot closed 1 year ago

BenRacicot commented 2 years ago

Hello, Just set up ngx-simple-modal and it's working great! However, I cannot find any examples of passing data and all obvious directions are giving me trouble. Is there an example of this?

Based on the instructions: input modal data type (data to initialize component);

let disposable = this.simpleModalService.addModal(SendComponent, {
    title: 'Confirm title',
    message: 'Confirm message',
    data: 'some string' <-- errors
})

Where is the data passed in?