var keijibanApp = angular.module('keijiban', ['ngMaterial', 'ngRoute']);

keijibanApp.directive('infoMenu', function() {
    return {
        templateUrl: 'app/common/infoMenu/infoMenuView.html',
        controller: 'infoMenuController'
    };
});

keijibanApp.directive('listButton', function() {
    return {
        templateUrl: 'app/common/boardButton/boardButtonView.html',
        controller: 'boardButtonController'
    };
});

keijibanApp.directive('editMenu', function() {
    return {
        templateUrl: 'app/common/editMenu/editMenuView.html',
        controller: 'editMenuController'
    };
});

keijibanApp.filter('stripHyphen', function() {
    return function(string) {
        return string.replace(/-/g, ' ');
    };
});

keijibanApp.filter('titleCase', function() {
    return function(string) {
        string = string || '';
        return string.replace(/\w\S*/g, function(txt) {
            return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
        });
    };
});

keijibanApp.filter('range', function() {
    return function(input, total) {
        total = parseInt(total);
        for (var i=0; i<total; i++) {
            input.push(i);
        }
        return input;
    };
});
var keijibanApp = angular.module('keijiban', ['ngMaterial', 'ngRoute']);

keijibanApp.directive('infoMenu', function() {
    return {
        templateUrl: 'app/common/infoMenu/infoMenuView.html',
        controller: 'infoMenuController'
    };
});

keijibanApp.directive('boardButton', function() {
    return {
        templateUrl: 'app/common/boardButton/boardButtonView.html',
        controller: 'boardButtonController'
    };
});

keijibanApp.directive('editMenu', function() {
    return {
        templateUrl: 'app/common/editMenu/editMenuView.html',
        controller: 'editMenuController'
    };
});

keijibanApp.filter('stripHyphen', function() {
    return function(string) {
        return string.replace(/-/g, ' ');
    };
});

keijibanApp.filter('titleCase', function() {
    return function(string) {
        string = string || '';
        return string.replace(/\w\S*/g, function(txt) {
            return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
        });
    };
});

keijibanApp.filter('range', function() {
    return function(input, total) {
        total = parseInt(total);
        for (var i=0; i<total; i++) {
            input.push(i);
        }
        return input;
    };
});
Change the name of a button directive that was missed to match the updated terminology
Change the name of a button directive that was missed to match the updated terminology
