Angular 1

In this example below you will see how to do a Angular 1 with some HTML / CSS and Javascript

research angular 1 22/05/2017

Thumbnail
This awesome code was written by Đinh Trọng Nghĩa, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Đinh Trọng Nghĩa ©

Technologies

  • HTML
  • JavaScript
<!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);

Comments