Skip to content

Commit cdd48d0

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

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎aio/angular.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"packageManager": "yarn",
66
"warnings": {
77
"typescriptMismatch": false
8-
}
8+
},
9+
"analytics": false
910
},
1011
"newProjectRoot": "projects",
1112
"projects": {
@@ -192,4 +193,4 @@
192193
}
193194
},
194195
"defaultProject": "site"
195-
}
196+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ If there are multiple styles you'd like to toggle, you can bind to the `[style]`
10041004
The expression attached to the `[style]` binding is most often a string list of styles like `"width: 100px; height: 100px;"`.
10051005

10061006
You can also format the expression as an object with style names as the keys and style values as the values, like `{width: '100px', height: '100px'}`.
1007-
It's important to note that with object format, the identity of the object must change for the styles to be updated.
1007+
It's important to note that with any object-like expression (`object`, `Array`, `Map`, `Set`, etc), the identity of the object must change for the class list to be updated.
10081008
Updating the property without changing object identity will have no effect.
10091009

10101010
If there are multiple bindings to the same style property, conflicts are resolved using [styling precedence rules](#styling-precedence).

0 commit comments

Comments
 (0)