2
그래서 내 코드는 간단하다다트 폴리머 내가 <code>neon-animated-pages</code></p> <p>를 사용하여 페이지를 전환 할 바인드 재산
@property
int selected = 0;
StreamSubscription _clickSubscription;
attached() {
_clickSubscription = this.on['showPwdReset'].listen((e) {
e = convertToDart(e);
// Read things from `e`.
print("Got show Event!");
selected = 1;
});
}
그래서, 나는 이벤트를 잡기 - 콘솔에서 볼 수 있습니다. 그러나 페이지는 바뀌지 않습니다.
shadow-dom에서 선택한 항목을 추가해도 수동으로 변경할 수 있습니다.
무엇이 문제입니까? 더 많은 정보 https://www.webcomponents.org/element/PolymerElements/neon-animation/neon-animatable
를 들어<neon-animatable><login-page></login-page></neon-animatable>
<neon-animatable><pwd-reset-page></pwd-reset-page></neon-animatable>
: