September 2017
Intermediate to advanced
450 pages
11h 24m
English
Let's carry out the following steps to create an asynchronous blog post service:
...import { BlogPostsService } from "./blog-posts.service";import { PostListComponent } from './post-list/post-list.component';const ROUTES = [{ path: "posts", component: PostsComponent, children: [ { path: "", component: PostListComponent }, { path: ":id", component: PostComponent } ]}];@NgModule({ imports: [ ... RouterModule.forChild(ROUTES) ], ...Read now
Unlock full access