Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

AngularDart 1.0, Component getter/setter not resolved properly if it is part of a library #1592

Open
@tlvenn

Description

@tlvenn

Hi,

Given the following component in /lib/components/about.dart with example.dart being in /lib:

part of example;

@Component(
    selector: 'about',
    templateUrl: 'components/about.html',
    useShadowDom: false
)
class About {

String get test => "Test";
}

And the following template:

<div>{{test}}</div>

Dart will complain that there is no getter for test. If I use an absolute path for the template then it works. Same if the component is in its library rather than being part of another one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions