Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app>
<head>
<meta name="description" content="AngularJS demo for Choosing a JavaScript Framework" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<meta charset=utf-8 />
<title>ng-click</title>
</head>
<body>
  
    <div ng-controller="TodoCrtl as todo">
      
      Current Price {{ todo.price | currency }}
      
      <br/>
      
      Enter Price Here: <input 
                               type="number" 
                               ng-model="todo.price">
      
      <br />
      
      <input type="button" 
             value="Set Price to 100" 
             ng-click="todo.action()">
      
    </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
trayburnpro
0viewers