Giter Site home page Giter Site logo

yangjingzwb / angular2-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angularlovers/angular2-demo

0.0 2.0 0.0 1.3 MB

angular2 study project(angular2+webpack+sass+bootstrap),if you feel if helpful,you could star and fork!!

Home Page: https://xiaomo.info

License: MIT License

HTML 35.67% TypeScript 35.00% CSS 1.04% JavaScript 28.29%

angular2-demo's Introduction

angular-lesson

一、目录

  • dist 编译目录
  • src
    -- images 图片
    -- ts 源码
    -- index.html 入口html
  • typings typescript d.ts
  • .babelrc babel编译环境
  • package.json 包管理
  • tsconfig.json typescript包管理
  • tslint.json typescript代码检测
  • vendor.ts 基础依赖
  • webpack.config.js webpack配置

二、 说明

index.html中会把所有示例的组件加入并显示效果

三、 运行方法

1. 设置镜像

npm config set registry https://registry.npm.taobao.org 淘宝的镜像,比国外的快n倍

2. 安装typescript编译工具

npm install -g typings

3. 安装依赖

npm install && typings install

3.1. 如果发现node-sass安装失败 再执行一次 npm install node-sass,不报错就可以了。这源自于天朝的牛逼墙

4. 运行项目

npm run start

5. 访问项目

http://localhost:8080

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.