adev/src/content/tutorials/learn-angular/steps/3-composing-components/README.md
You've learned to update the component template, component logic, and component styles, but how do you use a component in your application?
The selector property of the component configuration gives you a name to use when referencing the component in another template. You use the selector like an HTML tag, for example app-user would be <app-user /> in the template.
NOTE: Learn more about using components in the essentials guide.
In this activity, you'll learn how to compose components.
<hr/>In this example, there are two components User and App.
template: `<app-user />`, imports: [User]
The component now displays the message Username: youngTech. You can update the template code to include more markup.
</docs-step>
template: `
<section><app-user /></section>
`,
That's a great segue, how would you conditionally show a component based on data? Head to the next section to find out.