Essential Angular for ASP.NET Core MVC 3 by Adam Freeman

Essential Angular for ASP.NET Core MVC 3 by Adam Freeman

Author:Adam Freeman
Language: eng
Format: epub, pdf
ISBN: 9781484252840
Publisher: Apress


Listing 8-3.The Contents of the productList.component.ts File in the ClientApp/src/app/store Folder

This component will be responsible for displaying the list of products to the user. Even though I am just blocking out the content at the moment, I know that the set of products in the repository is needed, so I have declared a Repository dependency in the constructor and defined a get-only products property that returns the data. To provide the component with a template, create an HTML file called productList.component.html in the store folder and add the element shown in Listing 8-4.<h4 class="border border-dark bg-primary p-2">

Placeholder: Product List

</h4>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.