Skip to content

Commit 9966c99

Browse files
committed
Add some notes to the 12th, 14th steps, minor corrections to the 15th step.
Fixes Urigo/angular2-meteor#52, Urigo/meteor-angular2.0-socially#23.
1 parent 7d3dfe5 commit 9966c99

14 files changed

+143
-83
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_01.md"}}
2-
{{> downloadPreviousStep stepName="step_0"}}
2+
{{> downloadPreviousStep stepName="step_00"}}
33

44
Let's create a purely static HTML page and then examine how we can turn this HTML code into a template that Angular will use to dynamically display the same result with any set of data.
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_02.md"}}
2-
{{> downloadPreviousStep stepName="step_1"}}
2+
{{> downloadPreviousStep stepName="step_01"}}
33

44
Now it's time to make the web page dynamic — with Angular 2.
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_03.md"}}
2-
{{> downloadPreviousStep stepName="step_2"}}
2+
{{> downloadPreviousStep stepName="step_02"}}
33

44
OK, so we have a nice client side application that creates and renders it's own data.
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_04.md"}}
2-
{{> downloadPreviousStep stepName="step_3"}}
2+
{{> downloadPreviousStep stepName="step_03"}}
33

44
Now that we have full data binding from server to client, let's interact with the data and see the updates in action.
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_05.md"}}
2-
{{> downloadPreviousStep stepName="step_4"}}
2+
{{> downloadPreviousStep stepName="step_04"}}
33

44
In this step, you will learn how to create a layout template and how to build an app that has multiple views by adding routing, using the new Angular router.
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_06.md"}}
2-
{{> downloadPreviousStep stepName="step_5"}}
2+
{{> downloadPreviousStep stepName="step_05"}}
33

44
In this step we are going to add a form to the party details view and
55
bind a party object to it, so that we'll be able to change party details and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_07.md"}}
2-
{{> downloadPreviousStep stepName="step_6"}}
2+
{{> downloadPreviousStep stepName="step_06"}}
33

44
In this step we will review briefly files structure our Socially app has so far,
55
also we’ll look closely into TypeScript features since knowing better primary programming language of this package would be surely beneficial.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_08.md"}}
2-
{{> downloadPreviousStep stepName="step_7"}}
2+
{{> downloadPreviousStep stepName="step_07"}}
33

44
In this section we'll look at how to implement security for an app
55
using Meteor and Angular 2 API together.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#template name="tutorials.socially.angular2.step_09.md"}}
2-
{{> downloadPreviousStep stepName="step_8"}}
2+
{{> downloadPreviousStep stepName="step_08"}}
33

44
You may have noticed that all available parties were always shown on the page
55
at the time, independently had they been added by a logged-in user or

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

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ Run the following line to add this package:
7474

7575
meteor add barbatus:ng2-pagination
7676

77+
> This package's pagination mark-up follows the structure of
78+
> the Bootstrap's [one](http://www.w3schools.com/bootstrap/bootstrap_pagination.asp),
79+
> so you can change its look simply by using proper CSS styles.
80+
> It's worth to note, though, that this package has been created
81+
> with the idea to be used in this tutorial only.
82+
> It misses a lot of features that would be quite useful
83+
> in the real world, for example, custom templates.
84+
> In the future, this package will be replaced by the
85+
> pagination [library](https://github.com/michaelbromley/ng2-pagination) from the author of the Angular 1 pagination [angularutils:pagination](https://github.com/michaelbromley/angularUtils-pagination/) when
86+
> it gets martured enough.
87+
7788
It consists of three main parts: pagination controls, a pagination service
7889
and a pagination pipe. Pagination controls will simply render what is mentioned above —
7990
a list of page links to switch between.
@@ -155,12 +166,21 @@ Let's add it:
155166
meteor add tmeasday:publish-counts
156167

157168
This package exports `Counts` object with all API methods we are going
158-
to use. Let's publish total number of parties as follows:
169+
to use.
170+
171+
> Notice that you'll see a TypeScript warning in the terminal
172+
> saying that "Counts" is not defined, when you start using the API.
173+
> That's because "tmeasday:publish-counts" is a regular meteor package,
174+
> which doesn't know anything about TypeScript and it doesn't add any definition files.
175+
> If you want to get rid of this message, you are welcome to create own definition file,
176+
> which is quite easy if you read the 7th step.
177+
178+
Let's publish total number of parties as follows:
159179

160180
{{> DiffBox tutorialName="meteor-angular2-socially" step="12.9"}}
161181

162182
> Notice that we are passing `{ noReady: true }` in the last argument so
163-
> that the publication will be ready only after our main cursor is ready - readiness.
183+
> that the publication will be ready only after our main cursor is ready readiness.
164184
165185
We've just created new _numberOfParties_ publication.
166186
Let's get it reactively on the client side using `Counts` object, and, at the same time,
@@ -218,7 +238,7 @@ to a new value when user clicks on the search button:
218238
{{> DiffBox tutorialName="meteor-angular2-socially" step="12.15"}}
219239

220240
> Notice that we don't know what size of the search to expect
221-
> that's why we are re-setting current page to 0.
241+
> that's why we are re-setting current page to 1.
222242
223243
That's it! We are done with all features we wanted to implement.
224244
Let's check it out now that everything works properly altogether: pagination, search, sorting,

0 commit comments

Comments
 (0)