Answer the question
In order to leave comments, you need to log in
How to display a component without wrapping it in its own tag?
I don’t know how to google this question, and the title is also difficult to write to make it clear.
In Angular to render a component
@Component({
selector: 'app-my-component'
})
<app-my-component></app-my-component>
///some html code
<app-my-component>/* Some component code */</app-my-component>
///some other html code
///some html code
/* Some component code */
///some other html code
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question