Skip to content

Commit

Permalink
docs: move import statement of ngmodule from standalone component to …
Browse files Browse the repository at this point in the history
…module code #53952 (#54016)

PR Close #54016
  • Loading branch information
DivyaSudagoni authored and pkozlowski-opensource committed Jan 22, 2024
1 parent df453c3 commit 20811aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/guide/what-is-angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ Standalone components are a new organizational pattern that were introduced in A
For example, in the traditional NgModule pattern, you would need to create a TodoModule and manage all of its dependencies through this module.

```ts (Todo.module.ts)
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TodoList} from '../todo/todo-list.component';

Expand All @@ -325,7 +326,6 @@ export class TodoModule {}
However, you can now achieve something similar with a standalone component without the need for a module file:

```ts (Todo.component.ts)
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TodoList} from '../todo/todo-list.component';

Expand Down

0 comments on commit 20811aa

Please sign in to comment.