I have written a very simple script to test angularJS ng-repeat. Here is the script
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.js"></script>
<script language="javascript" type="text/javascript">
var app = angular.module('myApp',[]);
app.controller('myController',function($scope){
$scope.People=["Name 1","Name 2"];
});
</script>
<div ng-app="myApp">
<div ng-controller="myController">
<ul>
<li ng-repeat="person in People">{{person}}</li>
</ul>
</div>
</div>
When I paste this script in a script editor web part and click "Apply" in the web part, the script goes in an infinite loop and keeps on repeating the LI . I have to close the browser tab and open it again. By when I open the site again, the web part looks fine when the page is not in edit mode and the values are properly binded to the "LI".
Looks like the issue occurs only in the edit mode of the page. Any clue what is causing this. I am not able to figure out.