diff --git a/README.md b/README.md index e6d4caf..ed019b3 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,40 @@ You can write this ``` +Instead of this +``` +@if (People?.Length > 0) +{ +
    + @foreach (var person in People) + { +
  1. @person.FullName
  2. + } +
+} +else +{ +

No people found

+} +``` + +You can write this + +``` + + +
    + +
  1. @person.FullName
  2. +
    +
+
+ +

No people found

+
+
+``` + ## More information - View the [Example projects](https://github.com/mrpmorris/Morris.Blazor.ControlFlow/tree/master/Source/Tutorials) -- Read the [Release notes](https://github.com/mrpmorris/Morris.Blazor.ControlFlow/blob/master/Docs/Releases.md) \ No newline at end of file +- Read the [Release notes](https://github.com/mrpmorris/Morris.Blazor.ControlFlow/blob/master/Docs/Releases.md)