You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [/docs/api.md](/docs/api.md) in this project for detailed documentation of all angular-scaffold's functions.
46
41
47
-
Supporting angular-scaffold in your API
48
-
--
42
+
## Supporting angular-scaffold in your API
49
43
50
44
Your API must:
51
45
@@ -68,8 +62,7 @@ Your API must:
68
62
]
69
63
```
70
64
71
-
Basic Usage
72
-
--
65
+
## Basic Usage
73
66
74
67
In your AngularJS application, include the JavaScript:
75
68
@@ -98,8 +91,7 @@ Example controller using Angular Scaffold:
98
91
})
99
92
```
100
93
101
-
Basic CRUD example project
102
-
--
94
+
## Basic CRUD example project
103
95
104
96
An [example application is included in this repository](/sample-project/). It has a very simple API that illustrates a basic use case for angular-scaffold.
105
97
@@ -113,8 +105,7 @@ node server.js
113
105
114
106
You can then browse to http://localhost:4730/ and add/remove Post objects from a list. angular-scaffold takes care of talking to the API for you.
115
107
116
-
Pagination
117
-
--
108
+
## Pagination
118
109
119
110
angular-scaffold can paginate your model. Your API will need to support the `Range: resources=n-n` header to take advantage of this. For example, `Range: resources=10-20` would return resources 10 through 20.
0 commit comments