I have the following link defined in a template:
<div class="list-group">
{{#each}}
{{#link-to 'item' this class="list-group-item"}}
{{received}} {{subject}}
{{/link-to}}
{{/each}}
</div>
Why am I getting the following error when I click on this link?
Error while processing route: item" "content.slice is not a function" "__exports__.default<.arrangedContent<@http://localhost:8000/js/libs/ember-1.8.1.js:33419:21
These are the versions I am using:
"DEBUG: -------------------------------"
"DEBUG: Ember : 1.8.1"
"DEBUG: Ember Data : 1.0.0-beta.11"
"DEBUG: Handlebars : 1.3.0"
"DEBUG: jQuery : 1.10.2"
"DEBUG: -------------------------------"
Looking into the code, this is where things blow up:
...
arrangedContent: computed('content', 'sortProperties.@each', function(key, value) {
var content = get(this, 'content');
var isSorted = get(this, 'isSorted');
var sortProperties = get(this, 'sortProperties');
var self = this;
if (content && isSorted) {
content = content.slice(); <== BOOM!
...