zoukankan      html  css  js  c++  java
  • Angular常用命令:

    新建项目:

    ng new angualrdermo08 --skip-install  新建项目不进行安装项目依赖
    ng new todoList --skip-install --routing=true --style=scss 新建项目不安装依赖,安装路由,并制定所需的样式

    创建需要的组件:

    ng g module module/user --routing  新建模块并生成对应的页面路由
    ng g component home  新建组件

    ng g component module/user/components/profile 在模块user下新建组件profile组件

    常用于新建的指令
    ng generate class my-new-class // 新建 class
    ng generate component my-new-component // 新建组件
    ng generate directive my-new-directive // 新建指令
    ng generate enum my-new-enum // 新建枚举
    ng generate module my-new-module // 新建模块
    ng generate pipe my-new-pipe // 新建管道
    ng generate service my-new-service // 新建服务

    可以简写成:

    ng g cl my-new-class // 新建 class
    ng g c my-new-component // 新建组件
    ng g d my-new-directive // 新建指令
    ng g e my-new-enum // 新建枚举
    ng g m my-new-module // 新建模块
    ng g p my-new-pipe // 新建管道
    ng g s my-new-service // 新建服务

  • 相关阅读:
    Mysql如何修改unique key
    centos 编译 安装 protobuf
    EasyNetQ简单使用
    微信发送模板消息
    Python删除开头空格
    代码积累-Common
    sql With(NoLock),With(ReadPast)
    webform 使用log4net配置
    log4net.dll添加报错
    js-小数计算问题
  • 原文地址:https://www.cnblogs.com/yiweiyihang/p/11954006.html
Copyright © 2011-2022 走看看