<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Angular 1</title>
</head>
<body>
<h1>please open console</h1>
<div class="container" ng-app="" data-ng-init="firstName='John'" ng-model="name">
<p data-ng-bind="firstName"></p>
<p ng-bind="name"></p>My first expression: {{ 5 + 5 }}
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>
/*Downloaded from https://www.codeseek.co/dtnghia47/angular-1-VbqZOP */
function add(x, y) {
console.log(x+'__'+y);
return x + y;
}
var add10To = angular.bind(this, add, 10);
console.log(add10To(5));
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key) {
this.push(key + ': ' + value);
console.log(log);
}, log);