[ 
https://issues.apache.org/jira/browse/WEEX-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533446#comment-16533446
 ] 

Hanks Zhang commented on WEEX-104:
----------------------------------

Using vue-router to write SPA (single-page-application), or using navigator 
module to achieve MPA (multiple-page-application).

 

http://weex-project.io/guide/advanced/use-vuex-and-vue-router.html

> How to handle component Route in weex?
> --------------------------------------
>
>                 Key: WEEX-104
>                 URL: https://issues.apache.org/jira/browse/WEEX-104
>             Project: Weex
>          Issue Type: Bug
>          Components: Web Renderer
>            Reporter: Edward Zhang
>            Assignee: Danz He
>            Priority: Major
>         Attachments: 1.png, 2.png
>
>
> *When I build weex app. I found every vue file will be generated a js file. 
> And when I serve project. All of js files added to my html file. Why it is 
> load all the files in it? How could I route my weex app? every js file 
> content is below:*
> var App = require('..\src\xxx.vue')   // different vue file.
> App.el = '#root'
> new Vue(App)
> *I think it is not good way to route entire app. Does anyone could support me 
> snippet code?*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to