You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,15 @@ user.remove('addresses[0]');
144
144
user.get('addresses').length; //=> 1
145
145
```
146
146
147
+
## Warnings
148
+
149
+
Accessing a nested attribute will throw a warning in your console, because it's safer to use the getter syntax above. To silence these warnings, add an argument of `{silent: true}` to `get()`:
150
+
151
+
```javascript
152
+
user.get('addresses[0]'); // gives a warning in your console
0 commit comments