From the course: Learning Angular

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding subcomponents

Adding subcomponents - Angular Tutorial

From the course: Learning Angular

Start my 1-month free trial

Adding subcomponents

- [Instructor] All right, so it's time to finish up our application, and what we want to do is modify this so that when I click on one of these artists, I don't just get this sort of artist right here, but I get a detailed page for the artist. So to do that, I'm going to switch back to my terminal and generate a new component. Switch over to the desktop and a learnangular5 folder. And then I'm going to do an ng generate another component, and this component is going to be known as artist-details. That's going to generate a number of files and a new folder, and it's going to wire everything up in the app module as well. So we're not going to need the CSS file here, and also the test, but we do need to go into this component and make sure we remove this CSS reference right here. And that's going to be good there. And then, in here, we're going to need a template for what goes in this component, that HTML. So I've created a special just for you, and I'm going to hit this Raw button so…

Contents