parent
bbd7d79a76
commit
66764fec7e
@ -34,7 +34,7 @@ code-example(format='')
|
||||
:marked
|
||||
## Use the *Title* service
|
||||
Fortunately, Angular 2 bridges the gap by providing a `Title` service as part of the *Browser platform*.
|
||||
The [Title](../api//platform/browser/Title-class.html) service is a simple class that provides an API
|
||||
The [Title](../api/platform/browser/Title-class.html) service is a simple class that provides an API
|
||||
for getting and setting the current HTML document title:
|
||||
|
||||
* `getTitle() : string` — Gets the title of the current HTML document.
|
||||
|
@ -439,7 +439,7 @@ a(id="no-filter-pipe")
|
||||
We might sort the list by hero `name` and `planet` origin properties something like this:
|
||||
code-example(format="." language="html")
|
||||
<!-- NOT REAL CODE! -->
|
||||
<div *ngFor="#hero of heroes | orderBy:'name,planet'"></div>
|
||||
<div *ngFor="let hero of heroes | orderBy:'name,planet'"></div>
|
||||
:marked
|
||||
We identify the sort fields by text strings, expecting the pipe to reference a property value by indexing
|
||||
(e.g., `hero['name']`).
|
||||
|
Loading…
x
Reference in New Issue
Block a user