When adding a new object to the array, the model is not drawn. Data is added through a modal window.
I do not understand, like bilateral buying should work and render, but no. I have no idea - what could it be? 
HTML:
<section ng-controller="myController"> <h1>ΠΠ°Π΄Π°Π½ΠΈΡ</h1> <nav> <ul class="tabs"> <li><a href="#">ΠΠΎΠ²ΡΠ΅</a></li> <li><a href="#">Π ΡΠ°Π±ΠΎΡΠ΅</a></li> <li><a href="#">ΠΠ° ΡΠ°ΡΡΠΌΠΎΡΡΠ΅Π½ΠΈΠΈ</a></li> <li><a href="#">ΠΡΠΏΠΎΠ»Π½Π΅Π½Ρ</a></li> <li><a href="#">ΠΡΠΌΠ΅Π½Π΅Π½Ρ</a></li> <li><a href="#">Π§Π΅ΡΠ½ΠΎΠ²ΠΈΠΊΠΈ</a></li> <hr> </ul> </nav> <button onClick="getElementById('win').removeAttribute('style');" class="button" type="button">ΠΠΎΠ±Π°Π²ΠΈΡΡ</button> <div id="win" style="display:none;"> <div id="win"> <div class="overlay"></div> <div class="visible"> <h2>ΠΠΎΠ±Π°Π²ΠΈΡΡ Π² ΡΠ°Π±Π»ΠΈΡΡ</h2> <div class="content"> <h4>ΠΡΠΈΡΠ²ΠΎΠΈΡΡ ID</h4> <input class="form-control" ng-model="itemId" type="text" placeholder="ID"> <h4>ΠΠ°ΠΊΠΎΠΉ Π³ΠΎΡΠΎΠ΄</h4> <input class="form-control" ng-model="city" type="text" placeholder="ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ Π³ΠΎΡΠΎΠ΄Π°"> <h4>ΠΠ΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΠ°Ρ ΡΡΠ»ΡΠ³Π°</h4> <input class="form-control" ng-model="name" type="text" placeholder="ΠΠ°ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½ΠΈΠ΅ ΡΡΠ»ΡΠ³ΠΈ"> <h4>Π‘ΡΠΎΠΊ</h4> <input class="form-control" ng-model="complete" type="text" placeholder="Π‘ΡΠΎΠΊ Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΡ"> <h4>Π‘ΡΠΎΠΈΠΌΠΎΡΡΡ</h4> <input class="form-control" ng-model="price" type="text" placeholder="Π‘ΡΠΎΠΈΠΌΠΎΡΡΡ"> </div> <button type="button" onClick="getElementById('win').style.display='none';">ΠΡΠΌΠ΅Π½Π°</button> <button type="submit" ng-click="createTask()">ΠΠΎΠ±Π°Π²ΠΈΡΡ Π² ΡΠ°Π±Π»ΠΈΡΡ</button> </div> </div> </section> <section> <div class="wrapper"> <input type="search" placeholder="ΠΠΎΠΈΡΠΊ ΠΏΠΎ ΡΠ»ΠΎΠ²Ρ"> <label><input type="checkbox"/>ΠΠ΅ΡΡΠΎΠ½Π°Π»ΡΠ½ΠΎΠ΅</label> <label><input type="checkbox"/>ΠΠΎΡΠ½ΠΎΠ΅</label> <label><input type="checkbox"/>Π‘ΡΠΎΡΠ½ΠΎΠ΅</label> <a href="#"> ΠΠΈΠΊΠΈΡΠ° ΠΠ°ΡΡΠΎΡΠΊΠΈΠ½</a> </div> </section> <section ng-controller="myController"> <table> <thead> <tr> <td>ID</td> <td>ΠΠΎΡΠΎΠ΄</td> <td>ΠΠ°Π·Π²Π°Π½ΠΈΠ΅</td> <td>ΠΡΠΏΠΎΠ»Π½ΠΈΡΡ Π΄ΠΎ</td> <td>Π‘ΡΠΌΠΌΠ°</td> </tr> </thead> <tbody> <tr ng-repeat="task in tasks"> <td ng-bind = "task.itemId"></td> <td ng-bind = "task.city"></td> <td ng-bind = "task.name"></td> <td ng-bind = "task.complete"></td> <td ng-bind = "task.price"></td> </tr> </tbody> </table> </section> Js:
var tableController = angular.module("App", []); tableController.controller("myController", function ($scope) { console.log($scope); $scope.tasks = [{ itemId: 10256, city: "Π‘Π°ΠΌΠ°ΡΠ°", name: "ΠΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΎΠ²ΠΎΠ΄Π° ΠΎΡ ΠΊΠ»Π΅Π΅ΠΌΠ½ΠΎΠΉ ΠΊΠΎΡΠΎΠ±ΠΊΠΈ ΠΏΠΎΠΆΠ°ΡΠ½ΠΎΠΉ ΡΠΈΠ³Π½Π°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΊ ΡΠ°ΡΡΠ΅ΠΏΠΈΡΠ΅Π»Ρ, ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ ΡΠ°Π±ΠΎΡΠΎΡΠΏΠΎΡΠΎΠ±Π½ΠΎΡΡΡ", complete: "13 ΠΠ²Π³ΡΡΡΠ°", price: "10 201Ρ" }, { itemId: 10256, city: "Π‘Π°ΠΌΠ°ΡΠ°", name: "ΠΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΎΠ²ΠΎΠ΄Π° ΠΎΡ ΠΊΠ»Π΅Π΅ΠΌΠ½ΠΎΠΉ ΠΊΠΎΡΠΎΠ±ΠΊΠΈ ΠΏΠΎΠΆΠ°ΡΠ½ΠΎΠΉ ΡΠΈΠ³Π½Π°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΊ ΡΠ°ΡΡΠ΅ΠΏΠΈΡΠ΅Π»Ρ, ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ ΡΠ°Π±ΠΎΡΠΎΡΠΏΠΎΡΠΎΠ±Π½ΠΎΡΡΡ", complete: "13 ΠΠ²Π³ΡΡΡΠ°", price: "10 201Ρ" } , { itemId: 10256, city: "Π‘Π°ΠΌΠ°ΡΠ°", name: "ΠΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΏΡΠΎΠ²ΠΎΠ΄Π° ΠΎΡ ΠΊΠ»Π΅Π΅ΠΌΠ½ΠΎΠΉ ΠΊΠΎΡΠΎΠ±ΠΊΠΈ ΠΏΠΎΠΆΠ°ΡΠ½ΠΎΠΉ ΡΠΈΠ³Π½Π°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΊ ΡΠ°ΡΡΠ΅ΠΏΠΈΡΠ΅Π»Ρ, ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ ΡΠ°Π±ΠΎΡΠΎΡΠΏΠΎΡΠΎΠ±Π½ΠΎΡΡΡ", complete: "13 ΠΠ²Π³ΡΡΡΠ°", price: "10 201Ρ" } ] $scope.createTask = function () { $scope.tasks.push({itemId: $scope.itemId, city: $scope.city, name: $scope.name, complete: $scope.complete, price: $scope.price}); console.log($scope.tasks); }; });
Elementstab, are there any elements? - Stepan Kasyanenko