I have the following html and javascript code. I would like to see the script part (the alert) repeated.
<div id='ItemsContainer' ng-app='myApp'>
<div ng-controller='Controller'>
<div ng-repeat='item in items' >
{{item}}
<script>alert("{{item}}");</script>
</div>
</div>
</div>
function Controller($scope) {
$scope.log = function(m) {
console.log(m);
};
$scope.items = [1, 2];
}
Is this possible using angularjs?