Skip to content

Commit f5501c2

Browse files
authored
docs: fix the imports on lazy loading examples (#88)
1 parent 36444ee commit f5501c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ export class MyComponent {
259259
Register a component to register the child routes.
260260

261261
```ts
262-
import { NgModule, Component } from '@angular/core';
263-
import { ModuleWithRoute } from '@angular-component/router';
262+
import { Component } from '@angular/core';
264263

265264
@Component({
266265
template: `
@@ -278,6 +277,9 @@ export class LazyRouteComponent {}
278277
Implement the `ModuleWithRoute` interface for the route component to render after the module is loaded.
279278

280279
```ts
280+
import { NgModule } from '@angular/core';
281+
import { ModuleWithRoute } from '@angular-component/router';
282+
281283
@NgModule({
282284
declarations: [LazyRouteComponent, LazyComponent],
283285
})

0 commit comments

Comments
 (0)