在前面有一片博客中写到 用Angular Cli 构建 Angular 项目,那接着这里来了解下Angular项目的启动过程。
项目启动主要通过../src下的两个文件,main.ts 和index.html。
main.ts加载脚本,负责引导整个Angular应用的起点。
index.html加载页面,寻找启动模块(AppModule)指定的主组件对应的选择器。
技术改变生活,分享沉淀自我
缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: true
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true