mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
docs(module): fixed module example and corrected typos
This commit is contained in:
parent
125573602f
commit
05fa20df81
5 changed files with 5 additions and 5 deletions
|
|
@ -3,5 +3,5 @@
|
||||||
@description
|
@description
|
||||||
|
|
||||||
Use the API Reference documentation when you need more information about a specific feature. Check out
|
Use the API Reference documentation when you need more information about a specific feature. Check out
|
||||||
{@link guide/ Developer Guide} for AngularJS concepts. If you are new to AngularJS we recomend the
|
{@link guide/ Developer Guide} for AngularJS concepts. If you are new to AngularJS we recommend the
|
||||||
{@link tutorial/ Tutorial}.
|
{@link tutorial/ Tutorial}.
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ Returns the current value of an input field with the given `name`.
|
||||||
|
|
||||||
## repeater(selector, label).count()
|
## repeater(selector, label).count()
|
||||||
Returns the number of rows in the repeater matching the given jQuery `selector`. The `label` is
|
Returns the number of rows in the repeater matching the given jQuery `selector`. The `label` is
|
||||||
used for test ouput.
|
used for test output.
|
||||||
|
|
||||||
## repeater(selector, label).row(index)
|
## repeater(selector, label).row(index)
|
||||||
Returns an array with the bindings in the row at the given `index` in the repeater matching the
|
Returns an array with the bindings in the row at the given `index` in the repeater matching the
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ Important things to notice:
|
||||||
<doc:source>
|
<doc:source>
|
||||||
<script>
|
<script>
|
||||||
// declare a module
|
// declare a module
|
||||||
var simpleAppModule = angular.module('myApp', []);
|
var myAppModule = angular.module('myApp', []);
|
||||||
|
|
||||||
// configure the module.
|
// configure the module.
|
||||||
// in this example we will create a greeting filter
|
// in this example we will create a greeting filter
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ repeater tells Angular to create a `<li>` element for each phone in the list usi
|
||||||
tag as the template.
|
tag as the template.
|
||||||
|
|
||||||
* As we've learned in step 0, the curly braces around `phone.name` and `phone.snippet` denote
|
* As we've learned in step 0, the curly braces around `phone.name` and `phone.snippet` denote
|
||||||
bindings. As opposed to evaluating constants, these expression are refering to our application
|
bindings. As opposed to evaluating constants, these expressions are referring to our application
|
||||||
model, which was set up in our `PhoneListCtrl` controller.
|
model, which was set up in our `PhoneListCtrl` controller.
|
||||||
|
|
||||||
<img class="diagram" src="img/tutorial/tutorial_02.png">
|
<img class="diagram" src="img/tutorial/tutorial_02.png">
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ __`app/index.html`:__
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
We added a standard HTML `<input>` tag and used angular's
|
We added a standard HTML `<input>` tag and used Angular's
|
||||||
{@link api/ng.filter:filter $filter} function to process the input for the
|
{@link api/ng.filter:filter $filter} function to process the input for the
|
||||||
{@link api/ng.directive:ngRepeat ngRepeat} directive.
|
{@link api/ng.directive:ngRepeat ngRepeat} directive.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue