159
rated 0 times
[
165]
[
6]
/ answers: 1 / hits: 91846
/ 9 Years ago, wed, april 22, 2015, 12:00:00
$scope.itemarray = ['A', 'B', 'C'];
this will clear the array but the ui wont be updated.
$scope.itemarray = [];
this works fine! why?
$scope.itemarray.length = 0;
More From » angularjs