อัปเดต aurelia-templating-router สำหรับ 1.0.1
เมื่อฉันใช้
<router-view swap-order="with"></router/view>
เกิดข้อผิดพลาด
[app-router] TypeError: Cannot read property 'animatableElement' of undefined
หากฉันลบ swap-order="with" ข้อผิดพลาดจะหายไป
ถ้าฉันใช้เวอร์ชัน 1.0.0 แม้ว่าจะเป็น swap-order="with"
ทุกอย่างก็ใช้งานได้ มีใครเคยผ่านเรื่องนี้บ้างไหม?
ฉันไม่สามารถเล่นบน GistRun ได้ มันเป็นไปตามเนื้อหา (Typescript):
au new myapp
app.ts
export class App {
router:any;
configureRouter(config, router) {
this.router = router;
config.title = 'Aurelia';
config.map([
{ route: ['', 'home'], name: 'home', moduleId: 'home'}
]);
}
}
แอป.html
<template><router-view swap-order="with"></router-view></template>
โฮม.html
<template><h1>HOME</h1></template>
home.ts
export class Home{}
ก็เพียงพอที่จะเห็นข้อผิดพลาด
au run --watch
</router/view>
ของคุณเป็นเพียงการพิมพ์ผิดและไม่ได้อยู่ในรหัสของคุณใช่ไหม มันควรจะเป็น</router-view>
- person LStarky   schedule 08.12.2016</router/view>
เป็นเพียงการพิมพ์ผิด และไม่ได้อยู่ในรหัสของคุณ - person Fabio Nogueira   schedule 08.12.2016