Skip to content

Instantly share code, notes, and snippets.

@tiddle
Last active March 21, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tiddle/be1f7ac8f1b036c3fc6c to your computer and use it in GitHub Desktop.
Save tiddle/be1f7ac8f1b036c3fc6c to your computer and use it in GitHub Desktop.
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