Skip to content

Commit 89f3b53

Browse files
committed
Update tutorials.socially.angular2.step_12.md
* Link to official bootstrap docs rather than w3schools * Fix couple of typos
1 parent 22b4e37 commit 89f3b53

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/angular-meteor/client/content/tutorials/socially/angular2/tutorials.socially.angular2.step_12.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Pagination simply means delivering and showing parties to the client on the page
88
where each page has a predefined size.
99

1010
Besides client side logic, it usually includes querying a specific page of parties on
11-
the server side to deliver up to the client as well. By reducing number of documents to be trasferred at one time,
11+
the server side to deliver up to the client as well. By reducing number of documents to be transferred at one time,
1212
we not only increase usability of the user interface if there are too many documents in the storage,
13-
but also decrease page load time, which plays crucial role today.
13+
but also decrease page load time, which plays a crucial role today.
1414

1515
# Pagination
1616
First off, we'll add pagination on the server side. Thanks to the simplicity of the
@@ -32,14 +32,14 @@ add `options` parameter to the subscription method, and then pass it to the
3232

3333
{{> DiffBox tutorialName="meteor-angular2-socially" step="12.1"}}
3434

35-
On the client side, we are going to define tree additional variables in the `PartiesList` component our pagination will depend on:
35+
On the client side, we are going to define three additional variables in the `PartiesList` component our pagination will depend on:
3636
page size, current page number and name sort order.
37-
Second, we'll create, based on values of that variables, a special _options_ object and pass it to the parties subscription:
37+
Secondly, we'll create, based on values of that variables, a special _options_ object and pass it to the parties subscription:
3838

3939
{{> DiffBox tutorialName="meteor-angular2-socially" step="12.2"}}
4040

4141
`nameOrder` is going to contain two values, 1 and -1, to express ascending and descending orders
42-
correspondingly. Then, as you can see, we assign it to a party property (currently, `name`) we want to sort.
42+
respectively. Then, as you can see, we assign it to a party property (currently, `name`) we want to sort.
4343

4444
As was said before, we also need to query `Parties` on the client side with same parameters and options as we use on the server, i.e., parameters and options we pass to the server side.
4545
In reality, though, we don't need _skip_ and _limit_ options in this case, since, due to the result of the subscription,
@@ -75,7 +75,7 @@ Run the following line to add this package:
7575
meteor add barbatus:ng2-pagination
7676

7777
> This package's pagination mark-up follows the structure of
78-
> the Bootstrap's [one](http://www.w3schools.com/bootstrap/bootstrap_pagination.asp),
78+
> the Bootstrap's [one](http://getbootstrap.com/components/#pagination),
7979
> so you can change its look simply by using proper CSS styles.
8080
> It's worth to note, though, that this package has been created
8181
> with the idea to be used in this tutorial only.
@@ -276,4 +276,4 @@ even with growing complexity of features we add,
276276
we manage to crack every nut in a snap, thanks to we are armored
277277
with Meteor and Angular2 powers.
278278

279-
{{/template}}
279+
{{/template}}

0 commit comments

Comments
 (0)