(function () {
    'use strict';
    angular.module('tw.ui.table.example', ['tw.ui.table'])
        .controller('MainController', [
            '$scope',
            function ($scope) {

                var vm = $scope;

                $scope.compact = false;

                $scope.data = [{
                    name: 'Zhao Yu',
                    gender: 'Male',
                    age: 34,
                    phone: '876776565',
                    date: new Date(),
                    work: {
                        company: 'Techwuli',
                        title: 'Senior Developer'
                    }
                }, {
                    name: 'Chen Min',
                    gender: 'Female',
                    age: 30,
                    phone: '909876556'
                }, {
                    name: 'Zhao Yunze',
                    gender: 'Male',
                    age: 4
                }];

                $scope.columns = [{
                    title: 'Name',
                    path: 'name'
                }, {
                    title: 'Gender',
                    path: 'gender',
                    tooltipPath: 'phone'
                }, {
                    title: 'Phone',
                    path: 'phone',
                    numeric: true,
                    optional: true
                }, {
                    title: 'Age',
                    path: 'age',
                    numeric: true,
                    optional: true
                }, {
                    title: 'Date',
                    path: 'date',
                    numeric: true,
                    dataType: 'date',
                    dateFormat: 'MM/dd/yyyy HH:mm:ss',
                    optional: true
                }, {
                    title: 'Work',
                    path: 'work.title',
                    optional: true
                }, {
                    title: 'Action',
                    path: 'phone',
                    render: function (val, row, column) {
                        return '<md-button class="md-fab md-mini md-primary" ><md-icon md-font-icon="material-icons">perm_phone_msg</md-icon></md-button>';
                    }
                }];

                $scope.switch = function () {
                    $scope.compact = !$scope.compact;
                };

                $scope.addData = function () {
                    $scope.data.push({
                        name: 'Yu Qiying',
                        gender: 'Female',
                        age: 58
                    });
                };

                $scope.addColumn = function () {
                    $scope.columns.push({
                        display: 'Age',
                        name: 'age',
                        numeric: true
                    });
                };

                $scope.onItemClicked = function (item) {
                    console.log(item);
                };

                $scope.toggleHeader = function () {
                    $scope.hideHeader = !$scope.hideHeader;
                };

                $scope.showItemInConsole = function (item) {
                    console.log(item);
                };

                $scope.checkSelections = function () {
                    console.log('checking selections');
                };
            }
        ]);
})();

@@ -2093,16 +2093,45 @@
 primary%22
+ ng-click=%22vm.doAnyYouLike()%22
  %3E%3Cmd-ic
@@ -2357,32 +2357,133 @@
             %7D;%0A%0A
+                $scope.doAnyYouLike = function () %7B%0A                    alert(1);%0A                %7D%0A%0A
                 

Revert "change example"