angular2 step by step #1 - environment setup
Very general steps for new angualr2 developers:
install
node.js\npm
check version
node -v (7.2.0)
npm -v (4.0.2)
install angular-cli (npm install)
latest: https://github.com/angular/angular-cli/releases
check version ng -v (cli: 1.0.0-beta.21)
Create angular2 project
ng new
Run WebSite
ng serve
"ng serve" will lunch the web application, however for other hosting environment, need to build the application for production version.
Deployment
ng build (don't use any envinronment for now. eg ng build --prod)
index.html before and after build.
Copy dist folder to hosting environment. eg (IIS, apache, etc)
转载于:https://www.cnblogs.com/chsw/p/6386824.html
angular2 step by step #1 - environment setup相关推荐
- Step by Step Setup Git Server on Windows with CopSSH + msysGit and Integrate Git with Visual Studio
Introduction First of all, let me clarify that Git doesn't need to specify the side for client and s ...
- Cisco Wireless Controller 5508 Configuration Step by Step – Part 1 (CLI and GUI Access, Upgrade)
As the industry's most deployed controller, the Cisco 5500 Series Wireless Controller provides the h ...
- am335x linux内核烧写_实时 Linux 抖动分析 Step by step
本文首次发表于 实时 Linux 抖动分析 Step by step 前段时间有同学问到: 大家有显卡方面实时性调优经验交流吗?我现在是 x86,不加显示任务实时性可以保持在 20us 内,如果加上显 ...
- Enterprise Library Step By Step系列(一):配置应用程序块——入门篇
写在前面: 最近准备写Enterprise Library Step By Step的系列文章,对于每一个应用程序块,我都会用入门篇,进阶篇,剖析篇三篇文章去写. 在入门篇里会详细介绍应用程序块的使用 ...
- Microsoft SQL Server 2008 MDX Step by Step中关于MDX Step-by-Step.abf损坏文件的处理
文章目录 背景介绍 解决方法 背景介绍 在书籍<Microsoft SQL Server 2008 MDX Step by Step>中使用书籍附带资源时,由于SQL Server的版本问 ...
- GoFrame Step by Step Demo - P1
GoFrame Step by Step Demo P1 框架说明文档 GFTool 安装 Web框架学习 文章目录 GoFrame Step by Step Demo P1 参考Demo 记录 安装 ...
- 【Step By Step】将Dotnet Core部署到Docker上
[Step By Step]将Dotnet Core部署到Docker上 原文: [Step By Step]将Dotnet Core部署到Docker上 本教程的前提是,你已经在Linux服务器上已 ...
- 【Step By Step】将Dotnet Core部署到Docker下
一.使用.Net Core构建WebAPI并访问Docker中的Mysql数据库 这个的过程大概与我之前的文章<尝试.Net Core-使用.Net Core + Entity FrameWor ...
- python写一个通讯录step by step V3.0
python写一个通讯录step by step V3.0 更新功能: 数据库进行数据存入和读取操作 字典配合函数调用实现switch功能 其他:函数.字典.模块调用 注意问题: 1.更优美的格式化输 ...
- C#2.0实例程序STEP BY STEP--实例二:数据类型
C#2.0实例程序STEP BY STEP--实例二:数据类型 与其他.NET语言一样,C#支持Common Type Sysem(CTS),其中的数据类型集合不仅包含我们熟悉的基本类型,例如int, ...
最新文章
- python汉字编码错误_python解决汉字编码问题:Unicode Decode Error
- 2021年机器学习的下一步是什么?
- 数据切分 垂直切分、垂直拆分与水平拆分的优缺点
- SAP CRM Archive Object的Maintenance view
- 都说外国电工布线牛到不行?今天就看看中国电工最强布线!
- 自适应设计与响应式设计
- 重学数据结构007——二叉查找树
- Maven如何将别人的项目导入到自己的eclipse并使用
- 【报告分享】B站商业化探索频频,品牌方如何布局“小破站”营销.pdf
- nacos 服务日志_如何屏蔽Nacos日志输出?
- 基于二分查询树(BinarySearchTrees)实现的键值对表(symbole-table)
- 小米电视android刷机,小米电视刷机经历
- poj1723 SOLDIERS
- 守望先锋服务器修改,守望先锋开发者访谈:关于自定义的服务器
- Python入门 类型转换
- CSS文本自动换行实现
- Win7的2020年1月补丁下载及打补丁方法
- USB PD v1.0快速充电通信原理
- 控制用计算机论文,计算机在自动控制技术实践中的应用分析论文原稿
- 利用电脑投放手机声音且可不冲突同时播放电脑声音的方法