<!-- Plik: r11/directive-with-scope-advanced/index.html -->
<html>
<head>
  <meta charset="utf-8">
  <title>Aplikacja giełdowa</title>
</head>
<body ng-app="stockMarketApp">

  <div ng-controller="MainCtrl as mainCtrl">
    <h3>Lista towarów</h3>
    <div ng-repeat="s in mainCtrl.stocks">
      <div stock-widget
           stock-data="s"
           stock-title="Towar {{$index}}. {{s.name}}"
           when-select="mainCtrl.onStockSelect(stockPrice, stockName)">
      </div>
    </div>
  </div>

  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.js"></script>
  <script src="app.js"></script>
  <script src="directive.js"></script>
</body>
</html>
