I have an Javascript Array which holds values. I want that Array to be the source that Angular reads off to update the UI. But i how do i access it from Angular?
Like:
<script>
var myArr = ["apple", "banana", "cherry"];
/**
* then all Angular stuffs here...
*/
</script>
<div ng-controller="myController">
<ul>
<li ng-repeat="i in what?">
{{ i }}
</li>
</ul>
</div>
Of course i can build an Array in Angular scope. But anyway, how do i access the Javascript Array instead?