demo/demo.js
function ExampleCtrl($scope, $timeout) {
    var pomo_nonsense = 'The fallacy of disciplinary boundaries thematizes the figuralization of civil society.',
      regex = /(of\s.+\sboundaries|eht)/;

    $scope.reset = function reset() {
      delete $scope.data.pomo_nonsense;
      $timeout(function () {
        $scope.data.pomo_nonsense = pomo_nonsense;
      });
    };

    $scope.reverse = function reverse() {
      var arr = Array.prototype.slice.call($scope.data.pomo_nonsense);
      arr.reverse();
      $scope.data.pomo_nonsense = arr.join('');
    };

    $scope.data = {
      regex: regex,
      pomo_nonsense: pomo_nonsense
    };
  }
function ExampleCtrl($scope, $timeout) {
    var pomo_nonsense = 'The fallacy of disciplinary boundaries thematizes the figuralization of civil society.',
      regex = /(of\s.+\sboundaries|eht)/;

    $scope.reset = function reset() {
      delete $scope.data.pomo_nonsense;
      $timeout(function () {
        $scope.data.pomo_nonsense = pomo_nonsense;
      });
    };

    $scope.reverse = function reverse() {
      var arr = Array.prototype.slice.call($scope.data.pomo_nonsense);
      arr.reverse();
      $scope.data.pomo_nonsense = arr.join('');
    };

    $scope.data = {
      regex: regex,
      pomo_nonsense: pomo_nonsense
    };
  }
function ExampleCtrl ( $scope , $timeout ) { var pomo_nonsense = 'The fallacy of disciplinary boundaries thematizes the figuralization of civil society.' , regex = / (of\s.+\sboundaries|eht) / ; $scope . reset = function reset ( ) { delete $scope . data . pomo_nonsense ; $timeout ( function ( ) { $scope . data . pomo_nonsense = pomo_nonsense ; } ) ; } ; $scope . reverse = function reverse ( ) { var arr = Array . prototype . slice . call ( $scope . data . pomo_nonsense ) ; arr . reverse ( ) ; $scope . data . pomo_nonsense = arr . join ( '' ) ; } ; $scope . data = { regex : regex , pomo_nonsense : pomo_nonsense } ; }
Controls a singular example
Controls a singular example