text: (function () {
      "use strict";
  
      angular.module("flairbiApp")
          .directive('stringToBool', function () {
              return {
                  require: 'ngModel',
                  link: function (scope, element, attrs, ngModel) {
                      ngModel.$parsers.push(function (value) {
                          return value;
                      });
                      ngModel.$formatters.push(function (value) {
                          return value === 'true';
                      });
                  }
              };
          });
  })();
  