Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Angular2 Demo

A minimal Angular2 demo site using:

  • TypeScript
  • SystemJS
  • NPM Build
  • SASS

You can see the a running demo here.

NOTE: THIS PROJECT HAS NOT BEEN UPDATED TO NG2 RC5+, THERE ARE SOME MAJOR CHANGES BETWEEN THE VERSION THIS PROJECT USES AND THAT RELEASE. I DO PLAN TO UPDATE TIME PERMITTING.

Commands

command description
npm run setup installs globals/etc
npm run clean clean dist directory
npm run build clean, ts & sass build
npm run build:ts typescript build
npm run build:sass sass build
npm run build:css postcss build
npm run watch clean/watch ts & sass
npm run watch:ts watch typescript
npm run watch:sass watch sass
npm run dev build, watch, browsersync

Component Tree

Below outlines a tree of how the components are arranged in the Angular2 component tree.

component tree

File Structure

The folder structure is aimed to encapsulate components into their own modules. In each component folder, it contains all the html, css, js for that component. Components that are not coupled to this application are grouped into a common folder for reuse.

└── src
    ├── app           -- root     component
    │   ├── header    -- header   component
    │   └── rsvp      -- rsvp     component 
    └── common        -- root     utilities and components that are reusable
        ├── parallax  -- parallax component
        └── utils     -- misc     utilities

Credits

The demonstration was a project to learn Angular2 while teaching my beautiful fiancée how to code our wedding website; I hope you enjoy! The project was presented at SFL Code Conference, for slides click here.

About

Angular2 + SASS + TypeScript + SystemJS + NPM Builds

Resources

Releases

No releases published

Packages

No packages published