wizard-custom-inputs.js.es6 293 B

1234567891011121314
  1. export default Ember.Component.extend({
  2. actions: {
  3. add() {
  4. if (!this.get('inputs')) {
  5. this.set('inputs', Ember.A());
  6. }
  7. this.get('inputs').pushObject(Ember.Object.create());
  8. },
  9. remove(input) {
  10. this.get('inputs').removeObject(input);
  11. }
  12. }
  13. });