Nebular: Cant pass data to dialog

Created on 21 Oct 2018  路  5Comments  路  Source: akveo/nebular

screen shot 2018-10-21 at 9 59 56 pm

@Input() title: any;

constructor(protected ref: NbDialogRef) {
}

dismiss() {
this.ref.close();
}

Most helpful comment

Hello, I suppose you need to provide context structure like this:

context: { testVar: 'asd'}.

And you should define testVar in Dialog compotent with the same type. For example:

testVar: any;

All 5 comments

Hello, I suppose you need to provide context structure like this:

context: { testVar: 'asd'}.

And you should define testVar in Dialog compotent with the same type. For example:

testVar: any;

am not able to pass the data till now
this.dialogService.open(messagecomponent, { hasBackdrop: true, closeOnBackdropClick: true,hasScroll:false,context:{id:2222,value:'ssssss'});

if you are still alive, sulution is by using the context like in demos BUT yo have tu pass an object with known keys. This are delcared below @input decorator

Hello, I suppose you need to provide context structure like this:

context: { testVar: 'asd'}.

And you should define testVar in Dialog compotent with the same type. For example:

testVar: any;

How I can pass this data to resolver?

Not able to pass image data

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VictorSchleumer picture VictorSchleumer  路  4Comments

aqsdc1 picture aqsdc1  路  3Comments

andredatsch picture andredatsch  路  3Comments

mmezian picture mmezian  路  3Comments

dragonbane0 picture dragonbane0  路  3Comments