Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Problems with angular-component.js and ui-router-route-to-components working together #6

Open
@jjlorenzo

Description

@jjlorenzo

Hi, I had problems with both polyfills if I want to use the injectable resolve properties into the component controller. Some help please.

    .state({
      name:      'referrals.received',
      url:       'received/',
      component: 'referralsReceived',
      resolve: {
        data: function() {
          return 'some data'
        }
      },
    })

...

.component('referralsReceived', {
  bindings: {
    data: '<',
  },
  controller: controller,
  templateUrl: 'src/referrals/received/received.html',
});

...

function controller() {
  console.log('data', this.data); // is undefined
}

ui-router-route-to-components: 0.1.0
angular-component.js: 0.1.3
angular: 1.3.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions