Code Monkey home page Code Monkey logo

angular-2-samples's Introduction

Live DEMO here: http://www.syntaxsuccess.com/angular-2-samples
Documentation: http://www.syntaxsuccess.com/viewarticle/angular-2.0-examples

The project uses TypeScript, so to get started you may have to run the following:

1-Install the TypeScript compiler: npm install -g typescript@^1.7.0

2-Run npm install and bower install

Steps 1-2 takes care of installing required tooling.

The final step is to start the TypeScript compiler to transpile your TypeScript code to JavaScript.

I like to run it as a watch in order to automatically regenerate whenever I change my TypeScript.
Use the following command to start watching your files:

tsc --watch -m commonjs -t es5 --emitDecoratorMetadata --experimentalDecorators --jsx react app.ts

The above steps will build all dependencies, so all you have to do now is launch index.html. You can use any type of webserver you want since it's just a static html page. I generally do it from Webstorm by right clicking
index.html and selecting 'Run index.html'.

Note: If you're just browsing the project without making code changes - launching index.html is all you need since the transpiled JavaScript is already under source control. In other words, the TypeScript setup is only needed for people
who want to change the code and regenerate the JavaScript.

angular-2-samples's People

Contributors

kasperpeulen avatar screenm0nkey avatar thelgevold avatar

Watchers

 avatar  avatar

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.