Skip to content

Commit

Permalink
Add Angularjs requirement section to 0.3 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed Nov 13, 2014
1 parent 49c54fb commit b333ddd
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions UPGRADE-0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var tag = new Entity('tags')
.edition('editable')
.validation({
"required": true,
"max-length" : 150
"maxlength" : 150
})
);
```
Expand Down Expand Up @@ -73,7 +73,7 @@ Now the `Entity` definition should be splitted into views:
.type('string')
.validation({
"required": true,
"max-length" : 150
"maxlength" : 150
})
)
)
Expand All @@ -83,7 +83,7 @@ Now the `Entity` definition should be splitted into views:
.type('string')
.validation({
"required": true,
"max-length" : 150
"maxlength" : 150
})
)
)
Expand All @@ -105,7 +105,17 @@ These options have moved to the `DashboardView` & `ListView`:
* `headers`
* `quickFilters`

## Minor changes
## Angularjs requirement

`ng-admin` does not include `angularjs` anymore.

You must add `angularjs` library inclusion into your app index:

```html
<script src="/path/to/bower_components/angular/angular.min.js" type="text/javascript"></script>
```

## Minor changes

- `value` is now a function so the value of a field should be retrieved with `views.getField('fieldName').value()` instead of `views.getField('fieldName').value`.
- `callback` field type & method are now called `template`.
Expand Down

0 comments on commit b333ddd

Please sign in to comment.