Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="ss" ng-controller="ss2">
  <span class="title" ng-click="openTask()">{{ task.title }}</span>
</body>
</html>
 
angular.module("ss",[])
  .controller("ss2",function ($scope) {
  $scope.task = {title: 'test'};
  $scope.openTask = function( id ){
    var task = $scope.task.title= 'test2';
    console.log('Должно пахать');
  };
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers