Skip to content

Commit 338990d

Browse files
committed
tutorial docs cleanup - step_02
1 parent 33ee5dc commit 338990d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.docs/angular-meteor/client/views/steps/tutorial.step_02.tpl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ With that in mind, let's use a little Angular and JavaScript to add model, view,
3333

3434
Goals for this step:
3535

36-
* The list of three parties is now generated dynamically from data in the model of the client
36+
* Generate the parties list dynamically from data in a model (client only for now).
3737

3838

3939
# View and Template
@@ -98,7 +98,7 @@ The controller is simply a constructor function that takes a $scope parameter.
9898

9999
The data model (a simple array of parties in object literal notation) is now instantiated within the PartiesListCtrl controller.
100100

101-
Although the controller is not yet doing very much, it plays a crucial role. By providing context for our data model, the controller allows us to establish data-binding between the model and the view. We connected the dots between the presentation, data, and logic components as follows:
101+
Although the controller is not yet doing very much, it plays a crucial role. By providing context for our data model, the controller allows us to establish data-binding between the model and the view. We connected the dots between the presentation, the data, and the logic components as follows:
102102

103103
* The ngController directive, located on the body tag, references the name of our controller, PartiesListCtrl (located in the JavaScript file app.js).
104104

@@ -119,12 +119,11 @@ As you can see, when we declared the controller, we used strings for [dependency
119119
// ...
120120
}]);
121121

122-
There is a very popular Angular tool that's called [ng-annotate](https://github.com/olov/ng-annotate) that takes care of that for us so we can write regular code like it's not
123-
going through minification.
122+
There is a very popular Angular tool that's called [ng-annotate](https://github.com/olov/ng-annotate) that takes care of that for us so we can write regular code that won't get mangled in minification.
124123

125-
angular-meteor uses that process automatically. all you need to do is to change your .js files endings to .ng.js
124+
angular-meteor uses that process automatically. All you need to do is to change your .js files to end with .ng.js
126125

127-
then you can write your dependency injection like this:
126+
Then you can write your dependency injection like this:
128127

129128
angular.module("socially").controller("PartiesListCtrl",
130129
function($scope){
@@ -143,7 +142,7 @@ Add another binding to index.ng.html , For example:
143142

144143
<btf-markdown>
145144

146-
Create a new model property in the controller (inside app.js) and bind to it from the template. For example:
145+
Create a new model property in the controller (inside app.js) and bind to it in the template. For example:
147146

148147
$scope.name = "World";
149148

@@ -186,7 +185,7 @@ Extra points: try and make an 8x8 table using an additional ng-repeat.
186185

187186
You now have a dynamic app that features separate model, view, and controller components.
188187

189-
But, this is all client side, which is nice for tutorials, but in a real application we need to save the data in a DB on the server and sync all the clients with it.
188+
But, this is all client side, which is nice for tutorials, but in a real application we need to persist the data on the server and sync all the clients with it.
190189

191190
So, let's go to step 3 to learn how to bind ourselves to the great power of Meteor.
192191

0 commit comments

Comments
 (0)