You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aio/content/guide/angular-compiler-options.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ The `module` field of the library's `package.json` would be `"index.js"` and the
138
138
When `true`, the recommended value, enables the [binding expression validation](guide/aot-compiler#binding-expression-validation) phase of the template compiler. This phase uses TypeScript to verify binding expressions.
139
139
For more information, see [Template type checking](guide/template-typecheck).
140
140
141
-
Default is `false`, but when you use the Angular CLI command `ng new --strict`, it is set to `true` in the new project's configuration.
141
+
Default is `false`, but set to `true` in the created workspace configuration when creating a project using the Angular CLI.
142
142
143
143
<divclass="alert is-important">
144
144
@@ -213,7 +213,7 @@ When `true`, reports an error for a supplied parameter whose injection type cann
213
213
When `false`, constructor parameters of classes marked with `@Injectable` whose type cannot be resolved produce a warning.
214
214
The recommended value is `true`, but the default value is `false`.
215
215
216
-
When you use the Angular CLI command `ng new --strict`, it is set to `true` in the created project's configuration.
216
+
Set to `true` in the created workspace configuration when creating a project using the Angular CLI.
217
217
218
218
### `strictTemplates`
219
219
@@ -222,7 +222,7 @@ When `true`, enables [strict template type checking](guide/template-typecheck#st
222
222
The strictness flags that this option enables allow you to turn on and off specific types of strict template type checking.
223
223
See [troubleshooting template errors](guide/template-typecheck#troubleshooting-template-errors).
224
224
225
-
When you use the Angular CLI command `ng new --strict`, it is set to `true` in the new project's configuration.
225
+
Set to `true` in the created workspace configuration when creating a project using the Angular CLI.
226
226
227
227
### `trace`
228
228
@@ -246,4 +246,4 @@ Besides the configuration file, you can also use [`tsc` command line options](ht
Copy file name to clipboardExpand all lines: aio/content/guide/file-structure.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,12 +92,12 @@ Angular components, templates, and styles go here.
92
92
93
93
|`src/app/` files | Purpose |
94
94
|---|---|
95
-
|`app/app.config.ts`| Defines the application config logic that tells Angular how to assemble the application. As you add more providers to the app, they must be declared here.<br><br>_Only generated when using the `--standalone` option._|
95
+
|`app/app.config.ts`| Defines the application config logic that tells Angular how to assemble the application. As you add more providers to the app, they must be declared here. |
96
96
|`app/app.component.ts`| Defines the logic for the application's root component, named `AppComponent`. The view associated with this root component becomes the root of the [view hierarchy](guide/glossary#view-hierarchy) as you add components and services to your application. |
97
97
|`app/app.component.html`| Defines the HTML template associated with the root `AppComponent`. |
98
98
|`app/app.component.css`| Defines the base CSS stylesheet for the root `AppComponent`. |
99
99
|`app/app.component.spec.ts`| Defines a unit test for the root `AppComponent`. |
100
-
|`app/app.module.ts`| Defines the root module, named `AppModule`, that tells Angular how to assemble the application. Initially declares only the `AppComponent`. As you add more components to the app, they must be declared here.<br><br>_This file is not generated when using the `--standalone` option._|
100
+
|`app/app.module.ts`| Defines the root module, named `AppModule`, that tells Angular how to assemble the application. Initially declares only the `AppComponent`. As you add more components to the app, they must be declared here.<br><br>_This file is not generated when using `--no-standalone` option._|
101
101
102
102
### Application configuration files
103
103
@@ -207,4 +207,4 @@ Under the `projects/` folder, the `my-lib` folder contains your library code.
Copy file name to clipboardExpand all lines: aio/content/guide/lazy-loading-ngmodules.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,11 +68,11 @@ Enter the following command where `customer-app` is the name of your app:
68
68
69
69
<code-exampleformat="shell"language="shell">
70
70
71
-
ng new customer-app --routing
71
+
ng new customer-app --no-standalone
72
72
73
73
</code-example>
74
74
75
-
This creates an application called `customer-app`and the `--routing` flag generates a file called `app-routing.module.ts`. This is one of the files you need for setting up lazy loading for your feature module.
75
+
This creates an application called `customer-app`with a file called `app-routing.module.ts`. This is one of the files you need for setting up lazy loading for your feature module.
76
76
Navigate into the project by issuing the command `cd customer-app`.
77
77
78
78
### Create a feature module with routing
@@ -422,4 +422,4 @@ You might also be interested in the following:
Copy file name to clipboardExpand all lines: aio/content/guide/router.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ This topic describes how to implement many of the common tasks associated with a
4
4
5
5
<aid="basics"></a>
6
6
7
-
## Generate an application with routing enabled
7
+
## Generate an application
8
8
9
9
The following command uses the Angular CLI to generate a basic Angular application with application routes.
10
10
The application name in the following example is `routing-app`.
11
11
12
12
<code-exampleformat="shell"language="shell">
13
13
14
-
ng new routing-app --routing --defaults --standalone
14
+
ng new routing-app
15
15
16
16
</code-example>
17
17
@@ -22,7 +22,7 @@ To create a component using the CLI, enter the following at the command line whe
22
22
23
23
<code-exampleformat="shell"language="shell">
24
24
25
-
ng generate component first --standalone
25
+
ng generate component first
26
26
27
27
</code-example>
28
28
@@ -31,7 +31,7 @@ Here, the new name is `second`.
31
31
32
32
<code-exampleformat="shell"language="shell">
33
33
34
-
ng generate component second --standalone
34
+
ng generate component second
35
35
36
36
</code-example>
37
37
@@ -66,15 +66,15 @@ Import the routes into `app.config.ts` and add it to the `provideRouter` functio
66
66
67
67
The Angular CLI performs this step for you.
68
68
However, if you are creating an application manually or working with an existing, non-CLI application, verify that the imports and configuration are correct.
69
-
The following is the default `ApplicationConfig` using the CLI with the `--routing` flag.
69
+
The following is the default `ApplicationConfig` using the CLI.
70
70
71
71
```
72
72
export const appConfig: ApplicationConfig = {
73
73
providers: [provideRouter(routes)]
74
74
};
75
75
```
76
76
77
-
1. Set up a `Routes` array for your routes
77
+
1. Set up a `Routes` array for your routes
78
78
79
79
The Angular CLI performs this step automatically.
80
80
@@ -725,4 +725,4 @@ When using `RouterModule.forRoot`, this is configured with the `useHash: true` i
@@ -198,7 +199,7 @@ It has the following top-level properties.
198
199
199
200
| PROPERTY | Details |
200
201
|:--- |:--- |
201
-
|`builder`| The npm package for the build tool used to create this target. The default builder for an application \(`ng build myApp`\) is `@angular-devkit/build-angular:browser`, which uses the [webpack](https://webpack.js.org) package bundler. <divclass="alert is-helpful"> **NOTE**: A different builder is used for building a library \(`ng build myLib`\). </div> |
202
+
|`builder`| The npm package for the build tool used to create this target. The default builder for an application \(`ng build myApp`\) is `@angular-devkit/build-angular:application`, which uses the [esbuild](https://esbuild.github.io/) package bundler. <divclass="alert is-helpful"> **NOTE**: A different builder is used for building a library \(`ng build myLib`\). </div> |
202
203
|`options`| This section contains default build target options, used when no named alternative configuration is specified. See the [Default build targets](#default-build-targets) section. |
203
204
|`configurations`| This section defines and names alternative configurations for different intended destinations. It contains a section for each named configuration, which sets the default options for that intended environment. See the [Alternate build configurations](#build-configs) section. |
204
205
@@ -547,4 +548,4 @@ When supplying the value as a String the filename of the specified path will be
Copy file name to clipboardExpand all lines: aio/content/tutorial/first-app/first-app-lesson-03.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ In the **Terminal** pane of your IDE:
22
22
1. Run this command to create a new `HousingLocationComponent`
23
23
24
24
<code-exampleformat="shell"language="shell">
25
-
ng generate component housingLocation --standalone --inline-template --skip-tests
25
+
ng generate component housingLocation --inline-template --skip-tests
26
26
</code-example>
27
27
28
28
1. Run this command to build and serve your app.
@@ -64,7 +64,7 @@ In the **Edit** pane of your IDE:
64
64
In this step, you will copy over the pre-written styles for the `HousingLocationComponent` to your app so that the app renders properly.
65
65
66
66
1. Open `src/app/housing-location/housing-location.css`, and paste the styles below into the file:
67
-
67
+
68
68
<code-exampleheader="Add CSS styles to housing location to the component in src/app/housing-location/housing-location.component.css"path="first-app-lesson-03/src/app/housing-location/housing-location.component.css"></code-example>
69
69
70
70
1. Save your code, return to the browser and confirm that the app builds without error. You should find the message "housing-location works!" rendered to the screen.Correct any errors before you continue to the next step.
@@ -84,4 +84,4 @@ If you are having any trouble with this lesson, you can review the completed cod
84
84
85
85
*[First Angular app lesson 4 - Add a housing location interface to the application](tutorial/first-app/first-app-lesson-04)
0 commit comments