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
kms-1.0.1 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-1.0.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.9.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.8.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.7.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.19 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.18 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.17 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.14 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.6.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.5.0 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
kms-0.4.2 vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.12 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.11 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
praxis-0.19.0 lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.7 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
active_record_survey_api-0.0.6 spec/test_app/vendor/assets/bower_components/angular-ui-router/src/stateFilters.js
praxis-0.18.1 lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js
praxis-0.18.0 lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js
praxis-0.17.1 lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js