This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +23
-11
lines changed Expand file tree Collapse file tree 8 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,8 @@ a(id="find-parent")
697
697
698
698
This section describes some techniques for doing that.
699
699
700
- <a id="known-parent"></a>
700
+ a#known-parent
701
+ :marked
701
702
### Find a parent component of known type
702
703
703
704
You use standard class injection to acquire a parent component whose type you know.
@@ -715,7 +716,8 @@ a(id='alex')
715
716
the <live-example name="cb-dependency-injection"></live-example>
716
717
confirms that the `alex` parameter is set.
717
718
718
- <a id="base-parent"></a>
719
+ a#base-parent
720
+ :marked
719
721
### Cannot find a parent by its base class
720
722
721
723
What if you *don't* know the concrete parent component class?
@@ -752,7 +754,9 @@ a(id='alex')
752
754
confirms that the `alex` parameter is null.
753
755
*You cannot inject a parent by its base class.*
754
756
755
- <a id="class-interface-parent"></a>
757
+
758
+ a#class-interface-parent
759
+ :marked
756
760
### Find a parent by its class-interface
757
761
758
762
You can find a parent component with a [class-interface](#class-interface).
Original file line number Diff line number Diff line change @@ -558,7 +558,8 @@ a#feature-modules
558
558
In the next section, you'll carve the contact functionality out of the root module
559
559
and into a dedicated feature module.
560
560
561
- <a id="contact-module-v1"></a>
561
+ a#contact-module-v1
562
+ :marked
562
563
### Make _Contact_ a feature module
563
564
<!-- CF: Is "Contact" a proper noun in this context? -->
564
565
@@ -860,7 +861,8 @@ a#shared-module
860
861
The `TitleComponent` is used only once by the `AppComponent`.
861
862
There's no point in sharing it.
862
863
863
- <a id="no-shared-module-providers"></a>
864
+ a#no-shared-module-providers
865
+ :marked
864
866
### Why _UserService_ isn't shared
865
867
866
868
While many components share the same service instances,
Original file line number Diff line number Diff line change @@ -311,7 +311,8 @@ figure.image-display
311
311
With that concern in mind, implement an impure pipe with great care.
312
312
An expensive, long-running pipe could destroy the user experience.
313
313
314
- <a id="impure-flying-heroes"></a>
314
+ a#impure-flying-heroes
315
+ :marked
315
316
### An impure *FlyingHeroesPipe*
316
317
317
318
A flip of the switch turns the `FlyingHeroesPipe` into a `FlyingHeroesImpurePipe`.
Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ figure.image-display
131
131
[An Introduction to Content Security Policy](http://www.html5rocks.com/en/tutorials/security/content-security-policy/)
132
132
on the HTML5Rocks website.
133
133
134
- <a id="offline-template-compiler"></a>
134
+ a#offline-template-compiler
135
+ :marked
135
136
### Use the offline template compiler
136
137
137
138
The offline template compiler prevents a whole class of vulnerabilities called template injection,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ block includes
14
14
[Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
15
15
16
16
The Angular HTTP library simplifies application programming with the **XHR** and **JSONP** APIs.
17
+
17
18
# Contents
18
19
19
20
* [Demos](#demos)
@@ -581,7 +582,8 @@ block wikipedia-jsonp+
581
582
In this example, the app must always display the results for the *http* search
582
583
no matter which response arrives first.
583
584
584
- <a id="more-observables"></a>
585
+ a#more-observables
586
+ :marked
585
587
## More fun with Observables
586
588
587
589
You could make changes to the `WikipediaService`, but for a better
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ a(id="tsconfig")
29
29
:marked
30
30
This file contains options and flags that are essential for Angular applications.
31
31
32
- <a id="noImplicitAny"></a>
32
+ a#noImplicitAny
33
+ :marked
33
34
### *noImplicitAny* and *suppressImplicitAnyIndexErrors*
34
35
35
36
TypeScript developers disagree about whether the `noImplicitAny` flag should be `true` or `false`.
Original file line number Diff line number Diff line change 13
13
It's an excellent alternative to the *SystemJS* approach used elsewhere in the documentation.
14
14
This guide offers a taste of Webpack and explains how to use it with Angular applications.
15
15
16
- <a id="top"></a>
16
+ a#top
17
+ :marked
17
18
# Contents
18
19
19
20
* [What is Webpack?](#what-is-webpack)
Original file line number Diff line number Diff line change @@ -426,8 +426,8 @@ h1 Providing HTTP Services
426
426
427
427
Each call to `search()` puts a new string into this subject's _observable_ stream by calling `next()`.
428
428
429
+ a#ngoninit
429
430
:marked
430
- <a id="ngoninit"></a>
431
431
#### Initialize the *heroes* property (*ngOnInit*)
432
432
433
433
A `Subject` is also an `Observable`.
You can’t perform that action at this time.
0 commit comments