Skip to content

Instantly share code, notes, and snippets.

@tiddle
tiddle / BOND.md
Last active November 10, 2024 23:32

Interview Questions

By Carlo

  1. Explain OOP concepts. Using one of your previous projects as an example.

OOP is a way of encapsulation a set of functions and data that are related to each other, that can be created, reused and extended. A classic example of this is the Person class which is the base class, then from it you can extend it to create Teacher and Student.

test
@tiddle
tiddle / ProductComponent.js
Created March 24, 2016 10:02
es6 'this' issue
export default function ProductComponent() {
return {
template: '<product-list sort-function="vm.sort"></product-list>'
controller: ProductController,
controllerAs: 'vm'
}
}
class ProductController {
constructor(ProductService) {
@tiddle
tiddle / ProductListComponent.js
Last active March 21, 2016 22:52
Product List Component
class AppComponentController {
controller() {
console.log(this.products);
}
}
let controller = new AppComponentController;
export const AppComponent {
bindings: {