From 0a961c3d8060f8e498a362ef6c51f890a931aeb3 Mon Sep 17 00:00:00 2001 From: Maxim Salnikov Date: Mon, 6 Nov 2017 14:47:08 +0000 Subject: [PATCH] Path for APP_ROUTES fixed --- .../exercise-5_route-to-contactslistcomponent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jump-start-tutorial/exercise-5_route-to-contactslistcomponent.md b/jump-start-tutorial/exercise-5_route-to-contactslistcomponent.md index 46224c4..f9d3033 100644 --- a/jump-start-tutorial/exercise-5_route-to-contactslistcomponent.md +++ b/jump-start-tutorial/exercise-5_route-to-contactslistcomponent.md @@ -22,7 +22,7 @@ $ ng g c contacts-list 1. Create a component `ContactsListComponent` with angular-cli and move the current contact list logic there from `ContactsAppComponent` 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` 4. Add `RouterModule.forRoot(APP_ROUTES)` to the `imports` array of the module 5. Add `` in `ContactsAppComponent`'s view to load and render components