Permalink
Browse files

feat(bootstrap): the collection custom component

  • Loading branch information...
bas080
bas080 committed Jun 2, 2016
1 parent 185e98a commit 9ac7f5795abcaa2fcef88fee478eb98c196d2342
@@ -0,0 +1,9 @@
<template>

<form-fields
repeat.for="model of models"
model.bind="model"
schema.bind="schema">
</form-fields>

</template>
@@ -0,0 +1,7 @@
import {Collection} from './../collection';

export class CollectionCustomElement extends Collection {
constructor() {
super();
}
}
@@ -0,0 +1,18 @@
import {computedFrom} from 'aurelia-framework';

export class Collection {

constructor() {}

/* damn biolerplate */
activate(model) {
this.attribute = model.attribute;
this.models = model.value;
}

@computedFrom('attribute')
get schema() {
return this.attribute.schema;
}

}

0 comments on commit 9ac7f57

Please sign in to comment.