TypeScript 2.x By Example

Leverage the power of Typescript 2.0 using real-world examples
Preview in Mapt

TypeScript 2.x By Example

Sachin Ohri

3 customer reviews
Leverage the power of Typescript 2.0 using real-world examples

Quick links: > What will you learn?> Table of content> Product reviews

eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$25.20
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Frequently bought together


TypeScript 2.x By Example Book Cover
TypeScript 2.x By Example
$ 35.99
$ 25.20
TypeScript 2.x for Angular Developers Book Cover
TypeScript 2.x for Angular Developers
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781787280038
Paperback372 pages

Book Description

The TypeScript language, compiler, and open source development toolset brings JavaScript development up to the enterprise level. It allows you to use ES5, ES6, and ES7 JavaScript language features today, including classes, interfaces, generics, modules, and more. Its simple typing syntax enables building large, robust applications using object-oriented techniques and industry-standard design principles.

This book aims at teaching you how to get up and running with TypeScript development in the most practical way possible. Taking you through two exciting projects built from scratch, you will learn the basics of TypeScript, before progressing to functions, generics, promises, and callbacks. Then, you’ll get to implement object-oriented programming as well as optimize your applications with effective memory management. You’ll also learn to test and secure your applications, before deploying them. Starting with a basic SPA built using Angular, you will progress on to building, maybe, a Chat application or a cool application. You’ll also learn how to use NativeScript to build a cool mobile application. Each of these applications with be explained in detail, allowing you to grasp the concepts fast.

By the end of this book, you will have not only built two amazing projects but you will also have the skills necessary to take your development to the next level.

Table of Contents

Chapter 1: Getting Started with TypeScript
The current state of JavaScript
The not-so-good parts of JavaScript
TypeScript to the rescue
Alternatives to TypeScript
TypeScript features
Installation and setup
TypeScript compiler
TypeScript to-do list application
Playground
Summary
Chapter 2: Our First Application – Sports News Combinator
Sports News Combinator (SNC)
Type System
Classes in TypeScript
SNC – 101
Creating our model
First component – NewsComponent
Summary
Chapter 3: Sports News Combinator – Adding Features
Functions
Classes in TypeScript
Interfaces
Adding features to SNC
Summary
Chapter 4: Sports News Combinator – the Final Version
Decorators
Additional features in SNC
Final product
Summary
Chapter 5: Application 2 – Trello
An introduction to the sample Trello application
TypeScript namespace and modules
TypeScript Generics
Sample Trello application 
The Trello homepage
Trello – the board component
Summary
Chapter 6: Trello - Adding Features
Iterators
Asynchronous programming using TypeScript
Adding features to Sample Trello app
Functional implementation
Data formatting in Angular
Understanding dependency injection in Angular
Summary
Chapter 7: Testing the Trello Application
Fundamentals
Tools for testing
Folder and file structure for the test project
Writing test for pipes
Executing the test cases
Writing test cases for the services class
Writing test cases for isolated component
Writing the test cases for integrated components
Summary
Chapter 8: Trello - Using Angular CLI
Introducing Angular CLI
Generating an application with Angular CLI
Generating files for the application
Building an Angular app
Serving an Angular app
Linting an Angular application
Code coverage using Angular CLI
Summary
Chapter 9: Trello Mobile – Using NativeScript
What is NativeScript?
Setting up your NativeScript environment
Developing the Sample Trello application using NativeScript
Developing the Homepage component
The application so far
Developing the Board component
NativeScript UI elements
Summary
Chapter 10: Deploying Sample Trello on the Cloud Using Microsoft Azure
Azure Cloud as a deployment platform
Deploying Sample Trello using a web app service – FTP
Deploying Sample Trello using a web app service – GitHub
Summary

What You Will Learn

  • Design your first project in Visual Studio
  • Learn about the different data types in TypeScript
  • Create web applications in an object-oriented fashion using TypeScript
  • Build a Trello application using TypeScript's complex features.
  • Explore the tools available in a web application ecosystem to write unit test cases
  • Deploy web applications to cloud and assign resources to the application

Authors

Table of Contents

Chapter 1: Getting Started with TypeScript
The current state of JavaScript
The not-so-good parts of JavaScript
TypeScript to the rescue
Alternatives to TypeScript
TypeScript features
Installation and setup
TypeScript compiler
TypeScript to-do list application
Playground
Summary
Chapter 2: Our First Application – Sports News Combinator
Sports News Combinator (SNC)
Type System
Classes in TypeScript
SNC – 101
Creating our model
First component – NewsComponent
Summary
Chapter 3: Sports News Combinator – Adding Features
Functions
Classes in TypeScript
Interfaces
Adding features to SNC
Summary
Chapter 4: Sports News Combinator – the Final Version
Decorators
Additional features in SNC
Final product
Summary
Chapter 5: Application 2 – Trello
An introduction to the sample Trello application
TypeScript namespace and modules
TypeScript Generics
Sample Trello application 
The Trello homepage
Trello – the board component
Summary
Chapter 6: Trello - Adding Features
Iterators
Asynchronous programming using TypeScript
Adding features to Sample Trello app
Functional implementation
Data formatting in Angular
Understanding dependency injection in Angular
Summary
Chapter 7: Testing the Trello Application
Fundamentals
Tools for testing
Folder and file structure for the test project
Writing test for pipes
Executing the test cases
Writing test cases for the services class
Writing test cases for isolated component
Writing the test cases for integrated components
Summary
Chapter 8: Trello - Using Angular CLI
Introducing Angular CLI
Generating an application with Angular CLI
Generating files for the application
Building an Angular app
Serving an Angular app
Linting an Angular application
Code coverage using Angular CLI
Summary
Chapter 9: Trello Mobile – Using NativeScript
What is NativeScript?
Setting up your NativeScript environment
Developing the Sample Trello application using NativeScript
Developing the Homepage component
The application so far
Developing the Board component
NativeScript UI elements
Summary
Chapter 10: Deploying Sample Trello on the Cloud Using Microsoft Azure
Azure Cloud as a deployment platform
Deploying Sample Trello using a web app service – FTP
Deploying Sample Trello using a web app service – GitHub
Summary

Book Details

ISBN 139781787280038
Paperback372 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

TypeScript 2.x for Angular Developers Book Cover
TypeScript 2.x for Angular Developers
$ 35.99
$ 25.20
Vue.js 2.x by Example Book Cover
Vue.js 2.x by Example
$ 39.99
$ 28.00
Building Pro Web Apps with TypeScript 2.x [Video] Book Cover
Building Pro Web Apps with TypeScript 2.x [Video]
$ 124.99
$ 106.25
Matplotlib 2.x By Example Book Cover
Matplotlib 2.x By Example
$ 35.99
$ 25.20
Rapid Web Application Development with TypeScript 2.x [Video] Book Cover
Rapid Web Application Development with TypeScript 2.x [Video]
$ 124.99
$ 106.25
OpenCV 3.x with Python By Example - Second Edition Book Cover
OpenCV 3.x with Python By Example - Second Edition
$ 35.99
$ 25.20