ng-environment-setup
简介
ng-environment-setup
用于Angular项目自动化创建,依赖于:
环境
Angular-Cli (version >= 8.x)
Node (version >= 10.x)
安装
npm install ng-environment-setup -g
运行
nes
生成路由
- 在项目目录创建.router文件,内容如:
module.exports = [
{
id: 1,
title: '父级路由',
name: 'moduleName',
children: [
{
id: 101,
title: '子级路由',
link: '/moduleName/routeName'
}
]
}
]
- 运行命令
nes router