摘要: You can dynamically switch between components in a template by using the reserved <component> element and dynamically bind to its is attribute. By usi 阅读全文
posted @ 2018-07-26 21:26 Zhentiw 阅读(330) 评论(0) 推荐(0)
摘要: Because async components are not bundled with your app, they need to be loaded when requested. This means that your network could be slow, go down, or 阅读全文
posted @ 2018-07-26 19:18 Zhentiw 阅读(171) 评论(0) 推荐(0)
摘要: Vue provides a straight-forward syntax for loading components at runtime to help shave off initial bundle size. You simply define a function that retu 阅读全文
posted @ 2018-07-26 19:13 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: A common scenario is to present different components based on the state of the application. Dynamic components in Vue make this simple by providing a  阅读全文
posted @ 2018-07-26 17:59 Zhentiw 阅读(503) 评论(0) 推荐(0)
摘要: in client/app.js, we put user login logic inside here, so that other module can reuse those code by call: app.js: config.js: How to use in user page: 阅读全文
posted @ 2018-07-26 00:43 Zhentiw 阅读(972) 评论(0) 推荐(0)
摘要: Render functions open up a world of customization and control by using pure JavaScript rather than Vue's templating language. When you need to pull of 阅读全文
posted @ 2018-07-26 00:38 Zhentiw 阅读(219) 评论(0) 推荐(0)