Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Product List Component
class AppComponentController {
controller() {
console.log(this.products);
}
}
let controller = new AppComponentController;
export const AppComponent {
bindings: {
products: '=',
sort: '&'
},
controller: AppComponentController.controller
}
angular.module('app', [])
.component('appComponent', AppComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment