Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from olivergg/readme-typo
Browse files Browse the repository at this point in the history
Clarify usage instruction for controllers.
  • Loading branch information
mysticfall committed Oct 1, 2014
2 parents 5dd3377 + dd65587 commit c35587b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ trait.
Normally, you'll need to retrieve some data from the server with the ```http``` service, and
make it available to the HTML template by assigning it to a property of the ```$scope```.

To achieve this, the controller can implement either the ```ScopeAware``` or the ```RootScopeAware```
trait.

```scala
object UserDetailsController extends Controller with HttpServiceAware {

Expand Down Expand Up @@ -113,7 +110,7 @@ object UserDetailsController extends Controller with HttpServiceAware {
}
```

``ScopeAware`` defines an abstract type member ```ScopeType``` with which you can access
``ScopeAware`` (which is inherited from the ```Controller``` trait) defines an abstract type member ```ScopeType``` with which you can access
the scope object in a type safe manner. Due to a restriction in Scala.js, the target class
should inherit from the ```js.Object``` and you _cannot_ declare any methods in it.

Expand Down

0 comments on commit c35587b

Please sign in to comment.