chore: fix a few standing typos (#3280)
This commit is contained in:
parent
d41ac241e7
commit
11701c009f
|
@ -131,7 +131,7 @@ l-main-section
|
|||
|
||||
Your initial app has only a single module, the _root_ module.
|
||||
As your app grows, you'll consider subdividing it into multiple "feature" modules,
|
||||
so of which can be loaded later ("lazy loaded") if and when the user chooses
|
||||
some of which can be loaded later ("lazy loaded") if and when the user chooses
|
||||
to visit those features.
|
||||
|
||||
When you're ready to explore these possibilities, visit the [Angular Modules (NgModule)](ngmodule.html) guide.
|
||||
|
|
|
@ -177,7 +177,7 @@ a#create-component
|
|||
|
||||
:marked
|
||||
The `moduleId: module.id` lets you use
|
||||
[component-relative paths](./cookbook/component-relative-paths.html) in file URLs
|
||||
[component-relative paths](../cookbook/component-relative-paths.html) in file URLs
|
||||
such as when specifying the `templateUrl`.
|
||||
|
||||
Next, create an exported `HeroDetailComponent` class with a `FormControl`.
|
||||
|
|
|
@ -2416,7 +2416,7 @@ h3#can-load-guard <i>CanLoad Guard</i>: guarding unauthorized loading of feature
|
|||
It redirects to the login page if the user is not authorized.
|
||||
|
||||
But the router is still loading the `AdminModule` even if the user can't visit any of its components.
|
||||
Ideally, you's only load the `AdminModule` if the user is logged in.
|
||||
Ideally, you'd only load the `AdminModule` if the user is logged in.
|
||||
|
||||
Add a **`CanLoad`** guard that only loads the `AdminModule` once the user is logged in _and_ attempts to access the admin feature area.
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ a(href="#toc") Back to top
|
|||
|
||||
.s-why
|
||||
:marked
|
||||
**Why?** The naming conventions should simply help find desited code faster and make it easier to understand.
|
||||
**Why?** The naming conventions should simply help find desired code faster and make it easier to understand.
|
||||
|
||||
.s-why.s-why-last
|
||||
:marked
|
||||
|
|
|
@ -416,7 +416,7 @@ block observables-section-intro
|
|||
+ifDocsFor('ts')
|
||||
:marked
|
||||
A more important difference: we no longer call `toPromise`.
|
||||
Instead we return the *observable* from the the `htttp.get`,
|
||||
Instead we return the *observable* from the the `http.get`,
|
||||
after chaining it to another RxJS operator, <code>map</code>,
|
||||
to extract heroes from the response data.
|
||||
|
||||
|
|
Loading…
Reference in New Issue