Skip to content

Parameter types cannot be declared in the param config block #2294

Closed
@christopherthielen

Description

@christopherthielen

See discussion in #983 and original PR #2289

This should work, but does not:

.state({
 name: 'fooState',
 url: '/{param1:string}/{param2}',
 params: {
  param2: {
    value: 100, // default val
    type: 'int' // Setting a url param type here doesn't work
  },
  param3: {
    type: 'int' // url-less parameter type by name doesn't work
  }
 }
})

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions