书籍《揭秘Angular》通用例子,请确保你的 node.js 版本 >= 6.0
- 运行
npm install或者yarn install安装依赖 - 运行
npm start构建并启动本地Server - 浏览器打开 http://localhost:4200 即可访问
服务端渲染版本请运行
git checkout ssr切换至ssr分支
- npm install -g @angular/cli@latest
- npm install @angular/cli@latest
- ng update @angular/cli
- ng update @angular/core --force
- npm start