These are chat archives for angular/material

27th
Jun 2018
vasimahpathan
@vasimahpathan
Jun 27 2018 06:53
Hello,
Is there anybody here, who know "How to get modal service" in step by step manner
In angular 6
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 10:52
@vasimahpathan can you say it with more details
vasimahpathan
@vasimahpathan
Jun 27 2018 11:38
Hi @ElMaldithoDJ ,
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:39
@vasimahpathan Hi what do you try to say
vasimahpathan
@vasimahpathan
Jun 27 2018 11:39
I want to create modal where I can write the content of pop up dynamically,
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:40
@vasimahpathan ok that is easy in other component
vasimahpathan
@vasimahpathan
Jun 27 2018 11:40
In angular6
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:41
Yes you can I do it
And I use angular material
vasimahpathan
@vasimahpathan
Jun 27 2018 11:41
Can you please share the approach?
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:42
Ok let me turn on my PC please
vasimahpathan
@vasimahpathan
Jun 27 2018 11:43
Also, I have one doubt, In json response I am getting html tag and style tag into it
and I am rendering usin <div [innerHTML]="resopnse"></div>
but style is not applying
Do you know why it is happening, or else how can we apply json response style to html in popup?
I am rendering data in popup using api call
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:50
@vasimahpathan Are you in facebook
Because I need to show you some captures
Or you prefer to see the code
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 11:58
@vasimahpathan I remember I know the correct way is
<div [innerHTML]="response" style="background: red;"></div>
vasimahpathan
@vasimahpathan
Jun 27 2018 12:00
but the style tag is present in response data, that style I want to apply it
and in one key only I am getting style tag and html tag
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 12:01
Can you send me a capture
vasimahpathan
@vasimahpathan
Jun 27 2018 12:04
Capture.PNG
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 12:07
2018-06-27.png
@vasimahpathan I don't know your code
What is jw-modal?
it's a component?
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 12:13
@vasimahpathan Can I suggest you?
create your own modal with your own style my friend
Or use angular material like me and style it
vasimahpathan
@vasimahpathan
Jun 27 2018 12:53
Ok
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 13:34
@vasimahpathan and use Jquery
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 15:56
If you want
robertbrower-technologies
@robertbrower-technologies
Jun 27 2018 22:18
Is there no .active class defined by material?
ElMaldithoDJ
@ElMaldithoDJ
Jun 27 2018 22:22
@vasimahpathan i
I think no