Sha256: 8752992238e346d758024b4adbdcb083456139bd7a096cd128dd7165b6ca55ab

Contents?: true

Size: 995 Bytes

Versions: 39

Compression:

Stored size: 995 Bytes

Contents

/**
 * @ngdoc filter
 * @name ui.router.state.filter:isState
 *
 * @requires ui.router.state.$state
 *
 * @description
 * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}.
 */
$IsStateFilter.$inject = ['$state'];
function $IsStateFilter($state) {
  var isFilter = function (state) {
    return $state.is(state);
  };
  isFilter.$stateful = true;
  return isFilter;
}

/**
 * @ngdoc filter
 * @name ui.router.state.filter:includedByState
 *
 * @requires ui.router.state.$state
 *
 * @description
 * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}.
 */
$IncludedByStateFilter.$inject = ['$state'];
function $IncludedByStateFilter($state) {
  var includesFilter = function (state) {
    return $state.includes(state);
  };
  includesFilter.$stateful = true;
  return  includesFilter;
}

angular.module('ui.router.state')
  .filter('isState', $IsStateFilter)
  .filter('includedByState', $IncludedByStateFilter);

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
sw2at-ui-0.0.16 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
praxis-0.17.0 lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.15 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.14 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.13 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.12 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.11 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.10 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.9 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.8 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.7 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.6 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.5 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.4 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.3 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.2 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
sw2at-ui-0.0.1 app/assets/javascripts/swat/bower_components/angular-ui-router/src/stateFilters.js
puppet-herald-0.8.1 lib/puppet-herald/public/bower_components/angular-ui-router/src/stateFilters.js
puppet-herald-0.8.0 lib/puppet-herald/public/bower_components/angular-ui-router/src/stateFilters.js