Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

PositionalParams vs Named Ones

$
0
0

@marxsk wrote:

Let’s have component with

OneWayCheckboxComponent.reopenClass({
  positionalParams: ['paramChecked']
});

and template:

{{fc.control (one-way-select/contains (get object propertyName) option)
        disabled=disabled
        dir=dir
        lang=lang
        value=option
    }}

There are no syntactic errors, object.propertyName is Ember.A(["second"]). The output in the paramChecked is the array itself. Okay, this looks like the bug in our code but the strange thing is that when we remove positionalParams and use named one paramChecked = ( ... ) it works as expected and function returns true/false.

Is there a difference in resolving between named and positional parameters?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles