Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

access $['someid'] in moustage binding #266

Closed
DartBot opened this issue Jun 5, 2015 · 2 comments
Closed

access $['someid'] in moustage binding #266

DartBot opened this issue Jun 5, 2015 · 2 comments

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="96" height="96"hspace="10"> Issue by zoechi
Originally opened as dart-lang/sdk#20448


I tried to reference a method of a sibling as event handler inside a moustache expression.

<a href="#" on-click="{{ $['routelink'].parentRoute }}">articles</a>

Should this work? how?

I get
Transform ScriptCompactor on bwu_polymer_routing|example/example_01.html threw error: Bad state: invalid symbol name: "$['routelink'].parentRoute"

Polymer 0.12.1

Dart VM version: 1.6.0-edge.39058 (Fri Aug 8 15:50:20 2014) on "linux_x64"

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi


Polymer/polymer#446 (comment)
seems to be the answer (not supported)

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi


Seems to be a PR that adds support for exactly my use case.
https://github.com/Polymer/polymer-dev/pull/30/files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants