ng指令

作者: css7 | 来源:发表于2018-01-05 17:12 被阅读0次
  • 创建ng项目
    ng new 项目名
  • 运行项目
    ng serve --open
  • 修改端口号
    ng serve --port 1234
  • 新建组件
    ng g component 组件名
  • 新建路由模块
    ng g module router
  • 创建服务
    ng g service 名称
  • 安装jquery
    npm install jquery --save-dev
  • 安装bootstrap
    npm install bootstrap --save-dev
  • 安装项目描述文件
npm install @types/jquery --save-dev
npm install @types/bootstrap --save-dev
  • 在ng中引入jquery
    import * as $ from 'jquery'
  • 搭建node 服务器
    npm init -y
  • 安装node类型文件
    npm install @types/node --save
  • 在node中引入http模块
    import * as http from 'http'
  • 运行node服务
    node hello.js
  • 安装express框架
    npm install express --save
  • 安装express类型描述文件
    npm install @types/express --save
  • 反向代理运行项目
    npm run start
  • 编译sass
    sass input.scss output.css
  • 监视文件的改动并更新 CSS
    sass --watch input.scss:output.css
  • sass监听整个目录
    sass --watch app/sass:public/stylesheets

相关文章

  • Angular

    指令 ng- ng-app ng-model ng-eventType ng-controller 指令都写在ht...

  • angular 笔记

    ng-model 指令ng-model 指令 绑定 HTML 元素 到应用程序数据。ng-model 指令也可以:...

  • AngularJS (2)

    AngularJS 指令 AngularJS 指令是扩展的 HTML 属性,带有前缀 ng-。 ng-app 指令...

  • Angular基础教程二

    (7)ng-style 指令 ng-style 指令为 HTML 元素添加 style 属性。 ng-style ...

  • ng指令

    ng指令会自动生成一个js作用域因此里面无需用模板

  • ng指令

    创建ng项目ng new 项目名 运行项目ng serve --open 修改端口号ng serve --port...

  • angular ng指令

    1.指令 ng-app,ng- 都是angular的指令系统ng-app: ng-app是angular的初始化,...

  • AngularJs-DOM

    一、常用的指令: 1、ng-disabled 指令 ng-disabled 指令直接绑定应用程序数据到 HTML ...

  • 指令

    ng 指令 ng-app ng-model ng-bind ng-bind-html ng-bind-templa...

  • AngularJS内置指令

    -- 列表 --基础ng属性指令 ng-href ng-src ng-disabled ng-checked ng...

网友评论

      本文标题:ng指令

      本文链接:https://www.haomeiwen.com/subject/ryysnxtx.html