Giter VIP home page Giter VIP logo

angular2typescript's Introduction

This is a repository for code samples for the book by Yakov Fain and Anton Moiseev Angular 2 Development with TypeScript.

Besides the original code samples (they work with Angular 2.4) this repo has the folder extras with their Angular CLI version for both Angular 2 and Angular 4.

Reporting errors: If you'll run into a bug in the code, please open an issue here. If you want to report errors or typos in the book text, please report it at the book's forum in the Errata section.

The video with a code review of a sample online auction application that we gradually develop in the book is located at https://youtu.be/I809tajbVk4.

Watch the video from one of our recent online trainings: https://www.youtube.com/watch?v=47Gn-jgb0FI&feature=youtu.be It'll help you in getting started while reading Chapter 2.

To request on-site training in your organization send us an email at [email protected].

The Angular CLI version of the projects

After the book was published we've created additional versions of book samples using Angular-CLI generated projects (see this video https://www.youtube.com/watch?time_continue=1&v=VKQEN7IyanU). These code samples are located in the directory extras.

The extras directory has several subdirectories. Each of those is an Angular CLI project with several sample applications. Each of these applications has a bootstrap file with the name that starts with main (see the src directory).

To run any of these applications, change into the required directory and run npm install. Then modify the property main in the file .angular-cli.json to point at the bootstrap file you want to run.

After that, run ng serve and open your browser at localhost:4200.

Code samples located in the folders http-node-samples and auction require two separate terminal windows: one for running the Node server and another - to bundle and deploy the client. In the client dir: npm run build. In the server dir: npm run devRestAngular (in auction/server it's npm run startServer). Then open your browser at localhost:8000.

The folder test-weather contains the sample app from chapter 9. To run the tests, ng test.

The Angular 4 version of the code samples

The Angular 4 version of code samples were built with Angular CLI. They are located in the directory extras/Angular_4.

angular2typescript's People

Contributors

antonmoiseev avatar catull avatar centaure avatar evancarroll avatar maffelbaffel avatar rwaskiewicz avatar ychaikin avatar yfain 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.