Skip to content

Commit e1c0715

Browse files
committed
Add the missing part about the available search parameters
1 parent 990d1b4 commit e1c0715

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ Load the javascript and css and declare your Angular dependency
3333
angular.module('myModule', ['angular-advanced-searchbox']);
3434
```
3535

36+
Define the available search parameters in your controller:
37+
38+
```js
39+
$scope.availableSearchParams = [
40+
{ key: "name", name: "Name", placeholder: "Name..." },
41+
{ key: "city", name: "City", placeholder: "City..." },
42+
{ key: "country", name: "Country", placeholder: "Country..." },
43+
{ key: "emailAddress", name: "E-Mail", placeholder: "E-Mail..." },
44+
{ key: "job", name: "Job", placeholder: "Job..." }
45+
];
46+
```
47+
3648
Then in your view
3749

3850
```html

0 commit comments

Comments
 (0)