Home

Awesome

Angular2 Demo

A minimal Angular2 demo site using:

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

commanddescription
npm run setupinstalls globals/etc
npm run cleanclean dist directory
npm run buildclean, ts & sass build
npm run build:tstypescript build
npm run build:sasssass build
npm run build:csspostcss build
npm run watchclean/watch ts & sass
npm run watch:tswatch typescript
npm run watch:sasswatch sass
npm run devbuild, 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.