Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.rtl.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.2.716/js/kendo.all.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script src="https://rawgithub.com/kendo-labs/angular-kendo/master/angular-kendo.js"></script>
    <script type="text/javascript">
        var myApp = angular.module("kendoExamples", ['kendo.directives']);
        myApp.controller("listViewCtrl", function ($scope) {
            $scope.buttonData = {
                enabled: true,
                enableButton : function () {
                    $scope.buttonData.enabled = true;
                },
                disableButton: function () {
                    $scope.buttonData.enabled = false;
                }
            }
        });
    </script>
    <title></title>
</head>
<body ng-app="kendoExamples">
        <div ng-controller="listViewCtrl">
             Kendo buttons:
            <button kendo-button k-click="buttonData.enableButton">enable</button>
            <button kendo-button k-click="buttonData.disableButton">disable</button>
            <br/>
          Regular buttons: 
            <button ng-click="buttonData.enableButton()">enable</button>
            <button ng-click="buttonData.disableButton()">disable</button>
          
          
          <br/><br/>
          The buttons above should affect this button:
          <br/>
            <button ng-disabled="!buttonData.enabled">Button</button>
            
        </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers