Skip to content

Commit

Permalink
fix(Providers): Include ResourceLoader providers
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRyanDev authored and brandonroberts committed Apr 6, 2016
1 parent 3f07f13 commit a12fa6b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@ import { COMPONENT_RENDERER_PROVIDERS } from './component-renderer';
import { LINK_TO_PROVIDERS } from './link-to';
import { LINK_ACTIVE_PROVIDERS } from './link-active';
import { PARAMS_PROVIDERS } from './params';
import { RESOURCE_LOADER_PROVIDERS } from './resource-loader';

export function provideRouter(routes: Routes) {
return [
provide(LocationStrategy, { useClass: PathLocationStrategy }),
provide(ROUTES, { useValue: routes }),
LOCATION_PROVIDERS,
ROUTE_SET_PROVIDERS,
ROUTE_VIEW_PROVIDERS,
REDIRECT_PROVIDERS,
GUARD_PROVIDERS,
MATCH_ROUTE_PROVIDERS,
COMPONENT_RENDERER_PROVIDERS,
LINK_TO_PROVIDERS,
GUARD_PROVIDERS,
LINK_ACTIVE_PROVIDERS,
PARAMS_PROVIDERS
LINK_TO_PROVIDERS,
LOCATION_PROVIDERS,
MATCH_ROUTE_PROVIDERS,
PARAMS_PROVIDERS,
REDIRECT_PROVIDERS,
RESOURCE_LOADER_PROVIDERS,
ROUTE_SET_PROVIDERS,
ROUTE_VIEW_PROVIDERS
];
}

Expand Down

0 comments on commit a12fa6b

Please sign in to comment.