mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add warning about lack of testing used by TOH (#46811)
Adds a short note about how the .spec.ts testing files aren't used or modified in this tutorial. Fixes #37652 PR Close #46811
This commit is contained in:
committed by
Jessica Janiuk
parent
101ada9567
commit
fd15744fca
@@ -89,8 +89,7 @@ They display data on the screen, listen for user input, and take action based on
|
||||
## Make changes to the application
|
||||
|
||||
Open the project in your favorite editor or IDE. Navigate to the `src/app` directory to edit the starter application.
|
||||
|
||||
Note that the implementation of the shell `AppComponent` distributed over three files:
|
||||
In the IDE, locate these files, which make up the `AppComponent` that you just created:
|
||||
|
||||
| Files | Details |
|
||||
|:--- |:--- |
|
||||
@@ -98,6 +97,17 @@ Note that the implementation of the shell `AppComponent` distributed over three
|
||||
| `app.component.html` | The component template, written in HTML. |
|
||||
| `app.component.css` | The component's private CSS styles. |
|
||||
|
||||
<div class="alert is-important">
|
||||
|
||||
When you ran `ng new`, Angular created test specifications for your new application.
|
||||
Making these changes, however, breaks your newly created specifications.
|
||||
|
||||
That won't be a problem because Angular testing is outside the scope of this tutorial and won't be used.
|
||||
|
||||
To learn more about testing with Angular, see [Testing](guide/testing).
|
||||
|
||||
</div>
|
||||
|
||||
### Change the application title
|
||||
|
||||
Open the `app.component.ts` and change the `title` property value to 'Tour of Heroes'.
|
||||
|
||||
Reference in New Issue
Block a user