Skip to content

Commit 72bcb1b

Browse files
committed
fixup! docs(ivy): add docs for styling priority order
1 parent cdd48d0 commit 72bcb1b

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

‎aio/content/guide/template-syntax.md‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -947,27 +947,19 @@ If there are multiple bindings to the same class name, conflicts are resolved us
947947
<td><code>true</code>, <code>false</code></td>
948948
</tr>
949949
<tr>
950-
<td rowspan=5>Multi-class binding</td>
951-
<td rowspan=5><code>[class]="classExpr"</code></td>
950+
<td rowspan=3>Multi-class binding</td>
951+
<td rowspan=3><code>[class]="classExpr"</code></td>
952952
<td><code>string</code></td>
953953
<td><code>"my-class-1 my-class-2 my-class-3"</code></td>
954954
</tr>
955955
<tr>
956956
<td><code>{[key: string]: boolean | undefined | null}</code></td>
957957
<td><code>{foo: true, bar: false}</code></td>
958958
</tr>
959-
<tr>
960-
<td><code>Map</code><<code>string, boolean | undefined | null</code>></code></td>
961-
<td><code>new Map([['foo', true]])</code></td>
962-
</tr>
963959
<tr>
964960
<td><code>Array</code><<code>string</code>></td>
965961
<td><code>['foo', 'bar']</code></td>
966962
</tr>
967-
<tr>
968-
<td><code>Set</code><<code>string</code>> </code></td>
969-
<td><code>new Set(['foo', 'bar'])</code></td>
970-
</tr>
971963
</table>
972964

973965

@@ -1050,27 +1042,19 @@ If there are multiple bindings to the same style property, conflicts are resolve
10501042
<td><code>100</code></td>
10511043
</tr>
10521044
<tr>
1053-
<td rowspan=5>Multi-style binding</td>
1054-
<td rowspan=5><code>[style]="styleExpr"</code></td>
1045+
<td rowspan=3>Multi-style binding</td>
1046+
<td rowspan=3><code>[style]="styleExpr"</code></td>
10551047
<td><code>string</code></td>
10561048
<td><code>"width: 100px; height: 100px"</code></td>
10571049
</tr>
10581050
<tr>
10591051
<td><code>{[key: string]: string | undefined | null}</code></td>
10601052
<td><code>{width: '100px', height: '100px'}</code></td>
10611053
</tr>
1062-
<tr>
1063-
<td><code>Map</code><<code>string, string | undefined | null</code>></code></td>
1064-
<td><code>new Map([['width', '100px']])</code></td>
1065-
</tr>
10661054
<tr>
10671055
<td><code>Array</code><<code>string</code>></td>
10681056
<td><code>['width', '100px']</code></td>
10691057
</tr>
1070-
<tr>
1071-
<td><code>Set</code><<code>string</code>> </code></td>
1072-
<td><code>new Set(['width', '100px'])</code></td>
1073-
</tr>
10741058
</table>
10751059

10761060
The [NgStyle](#ngstyle) directive can be used as an alternative to direct `[style]` bindings.

0 commit comments

Comments
 (0)