I have the following example:
main_app.dart
@PolymerRegister('main-app')
class MainApp extends PolymerElement {
@property
Tst superTst = new Tst()..field1 = "blablabla";
}
class Tst {
String field1;
}
main_app.html
<dom-module id="main-app">
<template>
Teste
<span>{{superTst.field1}}</span>
</template>
</dom-module>
But, the {{superTst.field1}} does not result in text being shown!
How to access fields of the Dart objects in Polymer 1.0? (from new classes, different Map, List and primitive types)