路由概述
大多数带路由的应用都要在 index.html 的
标签下先添加一个Angular2包含了一个路由框架,我们只需要定义一个个的路径、和它对应的组件,然后在页面跳转时也使用Angular2的方式,我们就能够很方便的实现路由控制。
more >>
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true