Last active
March 21, 2016 22:52
-
-
Save tiddle/be1f7ac8f1b036c3fc6c to your computer and use it in GitHub Desktop.
Product List Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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