From 4d638ba9c2e45e15a79626945cf04fb727dea865 Mon Sep 17 00:00:00 2001 From: divyasudagoni Date: Sun, 21 Jan 2024 18:05:03 -0800 Subject: [PATCH] docs: move import statement of ngmodule from standalone component to module code #53952 (#54016) PR Close #54016 --- aio/content/guide/what-is-angular.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/what-is-angular.md b/aio/content/guide/what-is-angular.md index e65449e5fa5c2..2c48a488e3034 100644 --- a/aio/content/guide/what-is-angular.md +++ b/aio/content/guide/what-is-angular.md @@ -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'; @@ -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';