Skip to content
Snippets Groups Projects
Select Git revision
  • 76b2f7591cc2f31c2a17a863fba0830ba6265bec
  • master default protected
2 results

ExperienceView.vue

Blame
  • PizzaList.js 409 B
    import Component from '../components/Component.js';
    import PizzaThumbnail from '../components/PizzaThumbnail.js';
    
    export default class PizzaList extends Component {
    	#pizzas;
    
    	constructor(pizzas) {
    		super('section', { name: 'class', value: 'pizzaList' });
    		this.pizzas = pizzas;
    	}
    
    	set pizzas(value) {
    		this.#pizzas = value;
    		this.children = this.#pizzas.map(pizza => new PizzaThumbnail(pizza));
    	}
    }