docs and macro fix

This commit is contained in:
Leo Horie 2014-10-29 09:19:02 -04:00
parent 98c413b55b
commit cf3b77c161
8 changed files with 84 additions and 73 deletions

View file

@ -102,7 +102,7 @@ Checking whether there is a controller for a unit of functionality gives you a d
If we decide that a unit of functionality is indeed a reusable component, we can simply add a controller to it so that it follows the module interface.
```
```javascript
//assuming we already have a view in `search`, adding a controller lets us use `search` as an independent component
search.controller = function() {
search.vm.init()