Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanhabib committed Apr 5, 2021
1 parent 4765fae commit 4063632
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ Some folks decided to take the route of building the entire component in C# then

```html
<Iterations Items="Students">
<Iteration>
<StudentComponent Value="@context" />
</Iteration>
<StudentComponent Value="@context" />
</Iterations>
```
In the code snippet above, you can see how simpler, easier and prettier it can be to express an iteration in Blazor without having to write any specific C# code in your markup.
Expand All @@ -99,16 +97,14 @@ And that's why PrettyBlazor was made, to litterally make developing Blazor appli
Here's a more combined example of PrettyBlazor:
```html
<Iterations Items="Numbers">
<Iteration>
<Condition Evaluation="@(context%2 == 0)">
<Match>
<p>It's true!</p>
</Match>
<NotMatch>
<p>It's false!</p>
</NotMatch>
</Condition>
</Iteration>
<Condition Evaluation="@(context%2 == 0)">
<Match>
<p>It's true!</p>
</Match>
<NotMatch>
<p>It's false!</p>
</NotMatch>
</Condition>
</Iterations>
```

Expand Down

0 comments on commit 4063632

Please sign in to comment.