Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html ng-app='myApp'>
  <head>
    <meta charset="utf-8">
    <title>Angular.js Example</title>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
    <script>
      
      var myApp = angular.module('myApp', []);
      
      myApp.controller("NameCtrl", function($scope) {
        $scope.firstName = function() {return "John"; };
        $scope.lastName = 'Smith';
      });
      
    </script>
  </head>
  <body ng-controller="NameCtrl">
    First name:<input ng-model="firstName" type="text"/>
    <br>
    Last name:<input ng-model="lastName" type="text"/>
    <br>
    Hello {{firstName}} {{lastName}}
  </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers