Skip to content

Specifying bindings: does not work unless inside a views: block #47

@christopherthielen

Description

@christopherthielen

bindings: is used to map resolve data to component inputs. It is supposed to work both on a view declaration and on a state declaration, however it only works on a view declaration.

This currently works:

const state = {
  name: 'foo',
  views: {
    $default: {
      component: FooComponent,
      bindings: { fooData: 'fooResolve' },
    }
  }, 
  resolve: [ { token: 'fooResolve', resolveFn: fooResolveFn } ],
}

This does not currently work in beta.4:

const state = {
  name: 'foo',
  component: FooComponent,
  bindings: { fooData: 'fooResolve' },
  resolve: [ { token: 'fooResolve', resolveFn: fooResolveFn } ],
}

related to: #45

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions