Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created August 17, 2016 06:14
app.component('productListItem',
{
template: '<div class="col-sm-6 col-md-4"><h3>{{$ctrl.product.id}}</h3><p>{{$ctrl.product.name}}</p><button>Add to basket</button></div>',
restrict: 'E',
require: {
parent: '^productsList'
},
bindings: {
product: '<',
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment