Cant override MD_DIALOG_DATA in angular material -


i want use component routed component , dialog well. when use dialog, md_dialog_data works charm , can access data config. same component throws error if dont use dialog : "no provider md_dialog_data". okay no prob set provider,

provider : [    {provider: md_dialog_data, usevalue: {}} ] 

it absolve error, now, data object empty.

how can override or solve injection?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -