Skip to content

feat(router): binding from router-outlet to child component #4452

@btford

Description

@btford

For example:

@Component({ selector: 'foo-cmp' })
@View({
  template: `<router-outlet [prop-passed-to-child]="parentParams"></router-outlet>`,
  directives: ROUTER_DIRECTIVES
})
@RouteConfig([
  { path: '/', component: ChildCmp }
])
class ParentCmp {
  constructor(params: RouteParams) {
    this.parentParams = params;
  }
}

RouterOutlet should be able to pass the prop-passed-to-child binding to ChildCmp.

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