aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/angular/if-else.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/angular/if-else.html')
-rw-r--r--tests/indent/angular/if-else.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/indent/angular/if-else.html b/tests/indent/angular/if-else.html
new file mode 100644
index 000000000..7854e1bc8
--- /dev/null
+++ b/tests/indent/angular/if-else.html
@@ -0,0 +1,15 @@
+@if (someCondition) {
+ <p>someCondition is true</p>
+} @else {
+ <p>someCondition is false</p>
+}
+
+<div>
+ @if (someOther) {
+ <span>True</span>
+
+ @if (nestedCondition) {
+ <span>Nested</span>
+ }
+ }
+</div>