Skip to content

Using element selector in view model used in composition doesn't work #771

Open
@tomshane

Description

@tomshane

I'm submitting a bug report

  • Library Version:
    1.1.2

Please tell us about your environment:

  • Operating System:
    Windows 10 Pro

  • Node Version:
    6.10.0

  • NPM Version:
    3.10.10

  • Aurelia CLI OR JSPM OR Webpack AND Version
    webpack 2.2.1

  • Browser:
    all

  • Language:
    TypeScript 2.3

Current behavior:
Using selector in a viewmodel to get an element marked with ref="" doesn't work when the view/viewmodel is used in a composition.

View: <ul ref="history">
ViewModel: attached() { console.log(this.hisory); } returns undefined.

Expected/desired behavior:
Referenced element should be available in the viewmodel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions