Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 372 Bytes
import { Component } from '@angular/core';
import { PizzaService } from './shared/pizza.service';
@Component({
selector: 'pizza-root',
template: `
<span>Anzahl an Pizzen: {{pizzas.length}}</span>
`
})
export class AppComponent {
public pizzas: Array<any>;
constructor(private pizzaService: PizzaService) {
this.pizzas = this.pizzaService.getPizza();
}
}