Skip to content

Commit

Permalink
refactor: rename injectRoute to injectActivatedRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Oct 17, 2022
1 parent b496388 commit df17233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/router/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export { routes } from './lib/routes';
export { defineRouteMeta, injectRoute, injectRouter } from './lib/define-route';
export {
defineRouteMeta,
injectActivatedRoute,
injectRouter,
} from './lib/define-route';
export { provideFileRouter } from './lib/provide-file-routes';
4 changes: 2 additions & 2 deletions packages/router/src/lib/define-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const injectRouter = () => {
/**
* Returns the instance of the Activate Route for the component
*
* @returns The router
* @returns The activated route
*/
export const injectRoute = () => {
export const injectActivatedRoute = () => {
return inject(ActivatedRoute);
};

0 comments on commit df17233

Please sign in to comment.