From 53222919c2e3ce63d13b01c410a9a3b5330b8d18 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 10 Nov 2022 17:43:50 +0100 Subject: [PATCH] Add capitalize filter --- src/js/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/index.js b/src/js/index.js index bbd8c3562..66aef80f5 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -113,6 +113,12 @@ app.config(['$routeProvider', function ($routeProvider) { }).otherwise({ redirectTo: '/'}); }]); +app.filter('capitalize', function () { + return function (s) { + return s.charAt(0).toUpperCase() + s.slice(1); + }; +}); + app.filter('activeTask', function () { return function (app) { if (!app) return false;