Skip to content

Instantly share code, notes, and snippets.

@emoryy
Last active February 12, 2019 14:10
Show Gist options
  • Save emoryy/c7842938c40eb9118db2a45e8f4f1292 to your computer and use it in GitHub Desktop.
Save emoryy/c7842938c40eb9118db2a45e8f4f1292 to your computer and use it in GitHub Desktop.
InboundActions - concatenatedProperties
import Ember from 'ember';
import InboundActions from 'ember-component-inbound-actions/inbound-actions';
export default Ember.Component.extend(InboundActions, {
concatenatedProperties: ['x'],
x: ['A'],
classNames: ['A'],
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{{my-component
caseDescription="without binding the actionReceiver"
x="B"
classNames="B"
}}
{{my-component
caseDescription="with binding the actionReceiver"
x="B"
classNames="B"
actionReceiver=actionReceiver
}}
<h2>{{caseDescription}}</h2>
x: {{x}}
<br>
classNames: {{classNames}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2",
"ember-component-inbound-actions": "1.3.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment