Skip to content

Commit

Permalink
fix(stateFilters): Export each function individually
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jun 14, 2019
1 parent 74f068e commit 978b882
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stateFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Obj, StateService, StateOrName } from '@uirouter/core';
* ```
*/
$IsStateFilter.$inject = ['$state'];
export function $IsStateFilter($state: StateService) {
function $IsStateFilter($state: StateService) {
const isFilter: any = function(state: StateOrName, params: Obj, options?: { relative?: StateOrName }) {
return $state.is(state, params, options);
};
Expand All @@ -33,7 +33,7 @@ export function $IsStateFilter($state: StateService) {
* ```
*/
$IncludedByStateFilter.$inject = ['$state'];
export function $IncludedByStateFilter($state: StateService) {
function $IncludedByStateFilter($state: StateService) {
const includesFilter: any = function(state: StateOrName, params: Obj, options: { relative?: StateOrName }) {
return $state.includes(state, params, options);
};
Expand All @@ -45,3 +45,5 @@ angular
.module('ui.router.state')
.filter('isState', $IsStateFilter)
.filter('includedByState', $IncludedByStateFilter);

export { $IsStateFilter, $IncludedByStateFilter };

0 comments on commit 978b882

Please sign in to comment.