码迷,mamicode.com
首页 > 其他好文 > 详细

[Vue @Component] Load Vue Async Components

时间:2018-07-26 19:54:22      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:ram   size   sha   100%   com   undle   ret   vue   poi   

Vue provides a straight-forward syntax for loading components at runtime to help shave off initial bundle size. You simply define a function that returns an object with a component property pointing to a promise that loads a component, then Vue takes care of the rest for you.

 

https://vuejs.org/v2/guide/components-dynamic-async.html#Handling-Loading-State 

[Vue @Component] Load Vue Async Components

标签:ram   size   sha   100%   com   undle   ret   vue   poi   

原文地址:https://www.cnblogs.com/Answer1215/p/9373746.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!