docs(guide/controller): remove duplicate -Controller suffix

Closes #8482
This commit is contained in:
cexbrayat
2014-08-04 17:28:03 +02:00
committed by Peter Bacon Darwin
parent 833e60a203
commit a390612d15

View File

@@ -158,7 +158,7 @@ Things to notice in the example above:
- The `ng-controller` directive is used to (implicitly) create a scope for our template, and the
scope is augmented (managed) by the `SpicyController` Controller.
- `SpicyController` is just a plain JavaScript function. As an (optional) naming convention the name
starts with capital letter and ends with "Controller" or "Controller".
starts with capital letter and ends with "Controller".
- Assigning a property to `$scope` creates or updates the model.
- Controller methods can be created through direct assignment to scope (see the `chiliSpicy` method)
- The Controller methods and properties are available in the template (for the `<div>` element and