Skip to content

Commit ba6f98d

Browse files
chrisgriffithdavideast
authored andcommitted
Updating to RC1 modules (angular#183)
1 parent dc51962 commit ba6f98d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/3-retrieving-data-as-lists.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The guide below demonstrates how to retrieve, save, and remove data as lists.
1111
AngularFire is an injectable service, which is injected through the constructor of your Angular component or `@Injectable()` service.
1212

1313
```ts
14-
import {Component} from 'angular2/core';
14+
import {Component} from '@angular/core';
1515
import {AngularFire} from 'angularfire2';
1616

1717
@Component({
@@ -55,14 +55,14 @@ To get the list in realtime, create a list binding as a property of your compone
5555
Then in your template, you can use the `async` pipe to unwrap the binding.
5656

5757
```ts
58-
import {Component} from 'angular2/core';
58+
import {Component} from '@angular/core';
5959
import {AngularFire, FirebaseListObservable} from 'angularfire2';
6060

6161
@Component({
6262
selector: 'app',
6363
templateUrl: `
6464
<ul>
65-
<li *ngFor="var item in items | async">
65+
<li *ngFor="let item in items | async">
6666
{{ item.name }}
6767
</li>
6868
</ul>
@@ -100,7 +100,7 @@ from security rules denials, or for debugging.
100100
const promise = af.database.list('/items').remove();
101101
promise
102102
.then(_ => console.log('success'))
103-
.catch(err => console.log(err, 'You dont have access!'));
103+
.catch(err => console.log(err, 'You do not have access!'));
104104
```
105105

106106
### Adding new items

0 commit comments

Comments
 (0)