Skip to content

Commit 196dff3

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c5cbf67 + c73c9f2 commit 196dff3

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

.docs/angular-meteor/client/content/api/api.AngularMeteorCollection.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ <h4>Parameters</h4>
109109
</tr>
110110
</tbody></table>
111111
<br>
112-
<h3><p><code><span class="pln">subscribe( :subscriptionName );</span></code></p></h3>
112+
<h3><p><code><span class="pln">subscribe( :subscriptionName, :PublisherArguments );</span></code></p></h3>
113113
<br>
114114
A shorter ('syntactic sugar') function for <a href="/api/subscribe">$meteor.subscribe</a>.
115115

116-
Takes only one parameter and doesn't return a promise like <a href="/api/subscribe">$meteor.subscribe</a> does.
116+
Takes the subscription name and its paraemters, but does not return a promise like <a href="/api/subscribe">$meteor.subscribe</a> does.
117117

118118
When called after $scope.meteorCollection, it acts the same but in addition it automatically closes the subscription when the scope is destroyed.
119119

@@ -138,6 +138,13 @@ <h4>Parameters</h4>
138138
</p></td>
139139
<td><a href="" class="label type-hint type-hint-object">Yes</a></td>
140140
</tr>
141+
<tr>
142+
<td>publisherArguments</td>
143+
<td><a href="" class="label type-hint type-hint-object">any</a></td>
144+
<td><p>Optional arguments passed to publisher function on server.</p></td>
145+
<td><a href="" class="label type-hint type-hint-object">No</a></td>
146+
</tr>
147+
141148
</tbody>
142149
</table>
143150
#### Returns

.docs/angular-meteor/client/content/tutorials/angular1/steps/tutorial.step_09.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ More information about publications and subscription in [this blog article](http
264264
We've added the support of privacy to our parties app.
265265

266266
We also learned how to use the `Meteor.publish` command to control permissions and the data sent to the client
267-
and how to subscribe to it with the $meteor.collection publish function.
267+
and how to subscribe to it with the $meteor.collection subscribe function.
268268

269269
In the next step we will learn how to filter the users list in the client side with AngularJS filters and create a custom filter for our own needs.
270270

.docs/angular-meteor/client/content/tutorials/angular1/steps/tutorial.step_15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ So let's use `ng-if` to hide the outstanding invitations from a party, if the pa
5252

5353
# Assigning a function
5454

55-
Now lets hide the 'Users to invite' inside `party-details.ng.html` is case the user is not logged in or can't invite to the party:
55+
Now lets hide the 'Users to invite' inside `party-details.ng.html` in case the user is not logged in or can't invite to the party:
5656

5757
To do that we will create a scope function that returns a boolean and associate it with `ng-show`:
5858

.docs/angular-meteor/client/content/tutorials/angular1/steps/tutorial.step_16.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Now let's add a map the `party-details.ng.html` , first add this HTML snippet to
1818

1919
{{> DiffBox tutorialName="angular-meteor" step="16.2"}}
2020

21-
Here we created the google-map directive with attributes for biding the center, handling events and zoom of the map.
21+
Here we created the google-map directive with attributes for binding the center, handling events and zoom of the map.
2222
So let's define those variables in our scope. Go to `partyDetails.js`.
2323

2424
Inside we will create the $scope.map variable to hold the properties on the map:
@@ -32,15 +32,15 @@ Create a new file named parties.css inside a new folder called `styles` placed l
3232

3333
Now run the app and go to the party details page. You should see a new Google Map widget, but it doesn't do anything yet.
3434

35-
Let's add a marker that will be binded to the party's location.
35+
Let's add a marker that will be bound to the party's location.
3636

3737
Inside `party-details.ng.html`:
3838

3939
{{> DiffBox tutorialName="angular-meteor" step="16.5"}}
4040

4141
The ui-gmap-marker directive represents a marker inside the map. We use the following attributes:
4242

43-
* coords - where is the scope the marker location will be binded to.
43+
* coords - where is the scope the marker location will be bound to.
4444
* options - object that holds the marker options. We are going to use the draggable option.
4545
* events - handling the events on the marker. We will use the click event.
4646
* idKey - where in the scope there exists the unique id of the object that the marker represent.
@@ -56,7 +56,7 @@ What happened here:
5656
* We added the click event to the map. Every time the user clicks the map, we take the location from the click event's params and save it as the party's new location.
5757
Notice that in the end we call $scope.$apply(); this is because that event comes outside of Angular and we need to let Angular know that something has change so it will run another $digest cycle.
5858
* We defined the options object under the marker to specify the marker is draggable.
59-
* We handled the dragend event that happens when the marker is droped in a new location. We take the location from the event's params and save it as the party's new location.
59+
* We handled the dragend event that happens when the marker is dropped to a new location. We take the location from the event's params and save it as the party's new location.
6060

6161
Again, with the great Meteor platform there is no need for sync or save function. We just set it and it syncs in all other clients.
6262

@@ -77,7 +77,7 @@ You can see that the difference between the directive we used in `party-details.
7777
The attributes we use:
7878

7979
* models - the scope array that the markers represent.
80-
* coords - the property the holds the location.
80+
* coords - the property that holds the location.
8181
* click - handler for the click event on a marker
8282
* fit - a boolean to automatically zoom the map to fit all the markers inside
8383
* idKey - the property that holds the unique id of the array

.docs/angular-meteor/client/content/tutorials/angular1/steps/tutorial.step_17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Now, let's start with some cool fonts and some CSS changes to make the `index.ht
8585

8686
{{> DiffBox tutorialName="angular-meteor" step="17.9"}}
8787

88-
And verify that we have `angular-ui-bootstrap` dependency in the module definition, because we will use `$modal` service later.
88+
And verify that we have `ui.bootstrap` dependency in the module definition, because we will use `$modal` service later.
8989

9090
{{> DiffBox tutorialName="angular-meteor" step="17.10"}}
9191

.docs/angular-meteor/client/content/tutorials/angular1/steps/tutorial.step_18.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Next, we want to inject the angular-material module into our Angular application
1818

1919
{{> DiffBox tutorialName="angular-meteor" step="18.3"}}
2020

21-
Don't forget to remove the `ui.bootstrap` dependency! It's not longer needed!
21+
Don't forget to remove the `ui.bootstrap` dependency! It's no longer needed!
2222

2323
That's it, now we can use angular-material in our application layout.
2424

0 commit comments

Comments
 (0)