[Vue @Component] Load Vue Async Components

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 

posted @ 2018-07-26 19:13  Zhentiw  阅读(200)  评论(0编辑  收藏  举报