Skip to content

Path for APP_ROUTES fixed#16

Open
webmaxru wants to merge 1 commit intothoughtram:masterfrom
webmaxru:patch-2
Open

Path for APP_ROUTES fixed#16
webmaxru wants to merge 1 commit intothoughtram:masterfrom
webmaxru:patch-2

Conversation

@webmaxru
Copy link
Contributor

@webmaxru webmaxru commented Nov 6, 2017

No description provided.

2. Import `ContactsListComponent` in `src/app/app.module.ts` and add it to the module's `declarations`.
2. Create `src/app/app.routes.ts`, import the `ContactsListComponent` and export an array with routes (e.g. `export const APP_ROUTES = [...]`), holding one route pointing to `ContactsListComponent`.
3. In `app.module.ts` import `RouterModule` from `@angular/router` and `APP_ROUTES` from `./app/app.routes`
3. In `app.module.ts` import `RouterModule` from `@angular/router` and `APP_ROUTES` from `./app.routes`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we really want to do that then it should be ./src/app/app.routes . The ./app/ indicates that we're putting this file in there. ./app.routes tells me it's the root of the projects (so next to src) which would be wrong..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants