Is there a way to pass that button tag from the .ts file to the .html?
What I am trying to accomplish here is send a code to an API that pulls information from a database and then the whole page is painted from that data. But in order to do this, I need to pass the full html code for things like buttons.
Okay, that was very helpful to get me started. But I now realize I gave the "simple" version to explain what I was doing, but when I now try my more complex version using Angular Material it doesn't work.
What I'm trying to pass is an Angular Material Button. So the value I provided for you to show me how to pass is what's on line 1 below. But what I want to pass is line 2 of this code snippet.
So although I'm sending the code as "mat-raise-button" that is not rendering correctly. I assume that has to do with the order in which things are being read. Is that correct?
Is there a solution that would allow the button to show up as an Angular Material Button or will I have to render this button using class characteristics.
Thanks.
Paul Konstanski
ASKER
I just figured out how to do the second part. That is to simply pass it as a "class" So I changed my second line to this and it works great:
If you have a minute sometime can you give me a simple paragraph explanation of "Pipes." I haven't really understood them. Or point me to a Web site that you feel explains them well.
What I'm trying to pass is an Angular Material Button. So the value I provided for you to show me how to pass is what's on line 1 below. But what I want to pass is line 2 of this code snippet.
Open in new window
In my .html file I have this "test" followed by a hard coded line. That looks like this.Open in new window
When I inspect the code it shows them being rendered as:<span class="mat-button-wrapper"
<div class="mat-button-ripple mat-ripple" matripple="" ng-reflect-centered="false
<div class="mat-button-focus-ov
So although I'm sending the code as "mat-raise-button" that is not rendering correctly. I assume that has to do with the order in which things are being read. Is that correct?
Is there a solution that would allow the button to show up as an Angular Material Button or will I have to render this button using class characteristics.
Thanks.