Skip to content

Commit 75fcbdb

Browse files
chore(example): Add various parameter types to people state
1 parent 6b5e04f commit 75fcbdb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

example/hello.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ myApp.config(function($stateProvider) {
1010
name: 'people',
1111
url: '/people?' + ([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20].map(function(x) { return 'param'+x}).join('&')),
1212
component: 'people',
13+
params: {
14+
param5: { value: 123, type: 'int' },
15+
param6: { value: "abc" },
16+
param7: { value: true, type: 'bool' },
17+
param8: { value: null },
18+
param9: { value: null },
19+
param10: { value: null },
20+
param11: { value: "" },
21+
param12: { value: "" },
22+
},
1323
resolve: {
1424
people: function(PeopleService) {
1525
return PeopleService.getAllPeople();

0 commit comments

Comments
 (0)