From the course: Angular: Creating and Hosting a Full-Stack Site

Unlock the full course today

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

Create a Listing Data form

Create a Listing Data form

From the course: Angular: Creating and Hosting a Full-Stack Site

Start my 1-month free trial

Create a Listing Data form

- [Instructor] The next thing we're going to do is move on to implementing the edit listing page. Now, the edit listing page component will look very similar to the new listing page. In fact, it'll look so similar to this page, that it would really be a shame to waste so much code, implementing basically the same exact component. So, what we're going to do instead, is create an entirely separate component for the form that both of these pages will have in common. And then simply reuse this form on both pages, instead of duplicating the logic in HTML. So, what we're going to do here first, is open up a new terminal and we're going to generate a new component called listing data form, by saying NG generate component, listing data form, and hit enter. And now that we've created that component, the first thing we're going to do is see how to actually display it on our edit listing page. So let's open up our edit listing…

Contents