Created
December 30, 2014 23:43
-
-
Save chrismrgn/8dc9177e6f43618f3c85 to your computer and use it in GitHub Desktop.
ComponentTemplate.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@model ProductsViewModel | |
</div> | |
<div> | |
<h2>@Component.title</h2> | |
<p>@Component.summary</p> | |
</div> | |
@foreach(var product in Component.products) | |
{ | |
<div> | |
<p>@product.title - @@Model.Products.First(x=>x.Title == "@product.title").Price</p> | |
</div> | |
} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment