Skip to content

angular cli wiki new(ng new)

Christian-Yang edited this page Mar 11, 2017 · 1 revision

ng new
ng new 命令 Overview
概述

ng new [name] creates a new angular application.
ng new [应用的名字] 创建一个新的angular的应用
Default applications are created in a directory of the same name, with an initialized Angular application.
默认应用程序在具有相同名称的目录中创建,具有初始化的Angular应用程序
Options
选项
--dry-run (-d) run through without making any changes
--dry-run(-d)运行通过,不进行任何更改
--skip-install (-si) skip installing packages
--skip-install(-si)略过安装软件包 --skip-git (-sg) skip initializing a git repository
--skip-git(-sg)跳过初始化一个git仓库
--directory (-dir) the directory name to create the app in
--directory(-dir)创建应用程序的目录名称
--source-dir (-sd) the name of the source directory
--source-dir(-sd)源目录的名称
--style the style file default extension
-- 样式文件默认扩展名
--prefix (p) the prefix to use for all component selectors
--prefix(p)用于所有组件选择器的前缀
--routing flag to indicate whether to generate a routing module
--路由标志以指示是否生成路由模块
--inline-style (is) flag to indicate if the app component should have an inline style
--inline-style(is)标志,指示应用程序组件是否应该具有内联样式
--inline-template (it) flag to indicate if the app component should have an inline template
--inline-template(it)标志,用于指示应用组件是否应包含内联模板

Clone this wiki locally