2013-08-28 5 views
1

리피터 내부의 상위 범위에 액세스하는 데 문제가 있습니다.Polymer.dart의 상위 컨텍스트 액세스

<polymer-element name="x-playground" extends="div" attributes="children parent"> 
    <template> 
    {{parent}} 
    <template repeat="{{children}}"> 
     {{}} 
    </template> 
    </template> 

    <script type="application/dart"> 
    import 'package:polymer/polymer.dart'; 
    @CustomTag("x-playground") 
    class PlaygroundView extends PolymerElement with ObservableMixin { 
     @observable List children; 
     @observable String parent; 
    } 
    </script> 
</polymer-element> 

을하지만 다음으로 교체하는 경우 :

다음 코드는 작동

<template repeat="{{children}}"> 
     {{parent}} 
    </template> 

variable not found: parent in 770699111가 발생합니다.

부모 범위에 액세스 할 수있는 방법이 있습니까?

+0

이것은 https://code.google.com/p/dart/issues/detail?id=12742라고 생각합니다. –

답변