var app = angular.module('myApp', ['myApp.services']);

app.controller('ListCtrl', function($scope, filterService) {
  $scope.filterService = filterService;
  $scope.teamsList = [
    {id: 1, name: 'Dallas Mavericks', sport: 'Koszykówka', city: 'Dallas', featured: true},
    {id: 2, name: 'Dallas Cowboys', sport: 'Piłka nożna', city: 'Dallas', featured: false},
    {id: 3, name: 'New York Knicks', sport: 'Koszykówka', city: 'Nowy Jork', featured: false},
    {id: 4, name: 'Brooklyn Nets', sport: 'Koszykówka', city: 'Nowy Jork', featured: false},
    {id: 5, name: 'New York Jets', sport: 'Piłka nożna', city: 'Nowy Jork', featured: false},
    {id: 6, name: 'New York Giants', sport: 'Piłka nożna', city: 'Nowy Jork', featured: true},
    {id: 7, name: 'Los Angeles Lakers', sport: 'Koszykówka', city: 'Los Angeles', featured: true},
    {id: 8, name: 'Los Angeles Clippers', sport: 'Koszykówka', city: 'Los Angeles', featured: false},
    {id: 9, name: 'Dallas Stars', sport: 'Hokej', city: 'Dallas', featured: false},
    {id: 10, name: 'Boston Bruins', sport: 'Hokej', city: 'Boston', featured: true}
  ];
});

app.controller('FilterCtrl', function($scope, filterService) {
  $scope.filterService = filterService;
});
