Mercurial > gemma
comparison client/src/components/Main.vue @ 1669:16fb9667ddf8
refac: use dynamic imports for components
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 24 Dec 2018 13:12:11 +0100 |
parents | 0ded4c56978e |
children | 9bf6b767a56a |
comparison
equal
deleted
inserted
replaced
1668:eb832d81b67a | 1669:16fb9667ddf8 |
---|---|
18 * | 18 * |
19 * Author(s): | 19 * Author(s): |
20 * Thomas Junk <thomas.junk@intevation.de> | 20 * Thomas Junk <thomas.junk@intevation.de> |
21 */ | 21 */ |
22 | 22 |
23 import Maplayer from "./Maplayer"; | |
24 import FairwayProfile from "./fairway/Fairwayprofile"; | |
25 | |
26 export default { | 23 export default { |
27 name: "mainview", | 24 name: "mainview", |
28 components: { | 25 components: { |
29 Maplayer, | 26 Maplayer: () => import("./Maplayer"), |
30 FairwayProfile | 27 FairwayProfile: () => import("./fairway/Fairwayprofile") |
31 } | 28 } |
32 }; | 29 }; |
33 </script> | 30 </script> |