An example of how to write a simple reporting tool in Angular 2 Beta.
##Lost? Start with a look at an Angular 2 Hello World and an Angular 2 Hello World with Typescript.
- Install NodeJS
- Run
npm start
to get the application running on the web server- Packages needed for this application will be installed (i.e. Express, Angular, RxJS, SystemJS)
- The Node/Express Web Server will start
- Go to
http://localhost:8080/src/
in your web browser
The mocks via Balsamiq are located within the mock/ folder. There you will find a visualized breakdown of the Angular 2 components.
We are using SystemJS in this application for loading our modules. It needs to be configured to recognize where Angular and RxJS modules live. Look at the index.html
to see the configuration. Also, note that there will be one module bootstrapped. That module loads the entire Angular 2 application.
We are using TypeScript to write the application. TypeScript isn't needed, however it is the preferred way to write Angular 2 applications. Here is the Handbook to get you started. TypeScript can be transpiled via an IDE by defining a configuration within a tsconfig.json
.
This reporting tool is using data coming from an Azure Web Service @ http://lemon-aide-api.azurewebsites.net/data/reports
. It is serving up a list of reports for us to consume.
##Where to go from here? DevelopIntelligence offers a variety of classes on Angular. Check out Advanced AngularJS or the AngularJS Boot Camp to get your team up to speed.