Git Product home page Git Product logo

angular2-es6-starter's Introduction

Angular 2 Starter

The goal of this starter app is to provide a simple way to get started with Angular 2 while also showing key Angular 2 features. The sample relies on JSPM/System.js to load ES6 modules and the required scripts used in the application.

The sample is based on Angular Alpha 37.

Simply clone the project or download and extract the .zip to get started.

Angular 2 Concepts Covered

  • ES6 version that relies on classes and modules
  • Required scripts are downloaded locally using JSPM
  • ES6 modules are loaded with System.js
  • Defining routes and using router-outlet
  • Using Custom Components
  • Using Custom Directives
  • Defining Properties and Using Events in Components/Directives
  • Using the Http object for Ajax calls
  • Working with Utility and Service classes (such as for sorting and Ajax calls)
  • Using the New Databinding Syntax [], () and [()]

Usage

  1. Install global dependencies if necessary

     npm install -g jspm superstatic live-server
    
  2. Install node packages:

     jspm install
    
  3. Start the server

     ss
    

    Optional: If you want a "live reload" server then cd into the src directory and run live-server from the command-line.

  4. Open a browser and navigate to the site/port shown by Superstatic. If you use the live reload option then a browser will automatically be displayed and any changes to files will cause it to reload.

Note:

Bundling isn't used in this project since the overall goal is to provide a starter project for people interested in playing around with an early version of Angular 2.

angular2-es6-starter's People

Contributors

danwahlin avatar johnpapa 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.