Switching to Angular 2

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 30. März 2016
  • |
  • 254 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
E-Book | PDF mit Adobe DRM | Systemvoraussetzungen
978-1-78588-711-6 (ISBN)
 
Build SEO-friendly, high-performance single-page applications with Angular 2About This BookGet up to date with the latest changes to Angular 2, including the improvements to directives, change detection, dependency injection, router, and moreUnderstand Angular 2's new component-based architectureStart using TypeScript to supercharge your Angular 2 applicationsWho This Book Is ForDo you want to jump in at the deep end of Angular 2? Or perhaps you're interested assessing the changes before moving over? If so, then Switching to Angular 2 is the book for you.To get the most out of the book, you'll need to be familiar with AngularJS 1.x, and have a good understanding of JavaScript. No knowledge of the changes made to Angular 2 is required follow along.What You Will LearnUnderstand the changes made from Angular 1.x with side-by-side code samples to help demystify the Angular 2 learning curveStart working with Angular 2's new method of implementing directivesUse TypeScript to write modern, powerful Angular 2 applicationsDig in to the change-detection method, and other architectural changes to make sure you know what's going on under the hood of Angular 2.Get to work with the new router in Angular 2Use the new features of Angular 2 including pipes, or the updated features such as forms, services, and the DI moduleMaster server-side rendering in Angular 2 to keep your new applications SEO friendlyIn DetailAngularJS is a JavaScript framework that makes building web applications easier. It is used today in large-scale, high-traffic websites that struggle with under-performance, portability issues, as well as SEO unfriendliness, and complexity at scale.Angular 2 changes that.It is the modern framework you need to build performant and robust web applications. "Switching to Angular 2" is the quickest way to get to grips with Angular 2 and will help you transition in to the brave new world of Angular 2.We'll start with an overview which sets the changes of the framework in context with version 1.x. After that, you will be taken on a TypeScript crash-course so we can take advantage of Angular 2 in its native, statically-typed environment. We'll look at the new change-detection method in detail, how Directives and Components change how you create websites with Angular, the new Angular 2 router, and much more.By the end of the book, you'll be ready to start building quick and efficient Angular 2 applications that take advantage of all the new features on offer.Style and approachStarting with a comparison between Angular versions that is filled with side-by-side code examples to help highlight the changes, each chapter then looks at major changes to the framework as is filled with small examples and sample code to get you started
  • Englisch
  • Birmingham
978-1-78588-711-6 (9781785887116)
1785887114 (1785887114)
weitere Ausgaben werden ermittelt
  • Cover
  • Copyright
  • Credits
  • Foreword
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Angular 2
  • Chapter 2 : The Building Blocks of an Angular 2 Application
  • Chapter 3 : TypeScript Crash Course
  • Chapter 4 : Getting Started with Angular 2 Components and Directives
  • Chapter 5 : Dependency Injection in Angular 2
  • Chapter 6 : Working with the Angular 2 Router and Forms
  • Chapter 7 : Explaining Pipes and Communicating with RESTful Services
  • Chapter 8 : Development Experience and Server-Side Rendering
  • Index
  • The evolution of the Web - time for a new framework
  • The evolution of ECMAScript
  • Lessons learned from AngularJS 1.x in the wild
  • Summary
  • A conceptual overview of Angular 2
  • Changing directives
  • Getting to know Angular 2 components
  • Pipes
  • Change detection
  • Understanding services
  • Understanding the new component-based router
  • Summary
  • Introduction to TypeScript
  • Using TypeScript
  • TypeScript syntax and features introduced by ES2015 and ES2016
  • Meta-programming with ES2016 decorators
  • Writing modular code with ES2015
  • ES2015 module loader
  • ES2015 and ES2016 recap
  • Taking advantage of static typing
  • Further expressiveness with TypeScript decorators
  • Writing generic code by using type parameters
  • Writing less verbose code with TypeScript's type inference
  • Using ambient type definitions
  • Summary
  • The Hello world! application in Angular 2
  • Setting up our environment
  • Playing with Angular 2 and TypeScript
  • Using Angular 2 directives
  • Improved semantics of the directives syntax
  • Defining Angular 2 directives
  • Using Angular 2's built-in directives
  • Introducing the component's view encapsulation
  • Implementing the component's controllers
  • Handling user actions
  • Explaining Angular 2's content projection
  • Hooking into the component's life cycle
  • The order of execution
  • Defining generic views with TemplateRef
  • Understanding and enhancing the change detection
  • Summary
  • Why do I need Dependency Injection?
  • Dependency Injection in Angular 2
  • Configuring an injector
  • Defining factories for instantiating services
  • Child injectors and visibility
  • Summary
  • Developing the "Coders repository" application
  • Exploring the Angular 2 router
  • Using Angular 2 forms
  • Two-way data-binding with Angular 2
  • Storing the form data
  • Listing all the stored developers
  • Summary
  • Developing model-driven forms in Angular 2
  • Exploring the HTTP module of Angular
  • Defining parameterized views
  • Defining nested routes
  • Transforming data with pipes
  • Summary
  • Running applications in Web Workers
  • Initial load of a single-page application
  • Enhancing our development experience
  • Bootstrapping a project with angular-cli
  • Angular 2 quick starters
  • Summary
  • Web Components
  • WebWorkers
  • Controllers
  • Scope
  • Dependency Injection
  • Server-side rendering
  • Applications that scale
  • Templates
  • Change detection
  • Components in action
  • Components in Angular 2
  • Defining pipes
  • Classical change detection
  • AngularJS 1.x change detection
  • Enhancing AngularJS 1.x's change detection
  • Angular 2 route definition syntax
  • Compile-time type checking
  • Better support by text editors and IDEs
  • There's even more to TypeScript
  • Installing TypeScript with npm
  • Running our first TypeScript program
  • ES2015 arrow functions
  • Using the ES2015 and ES2016 classes
  • Defining variables with block scope
  • Using configurable decorators
  • Using the ES2015 module syntax
  • Taking advantage of the implicit asynchronous behavior
  • Using aliases
  • Importing all the module exports
  • Default exports
  • Using explicit type definitions
  • Understanding the Primitive types
  • Understanding the Object types
  • Defining classes
  • Using access modifiers
  • Defining interfaces
  • Using generic functions
  • Having multiple type parameters
  • Best common type
  • Contextual type inference
  • Using predefined ambient type definitions
  • Custom ambient type definitions
  • Defining ts.d files
  • Installing our project repository
  • Digging into the index
  • The ngFor directive
  • Declaring variables inside a template
  • Using syntax sugar in templates
  • Setting the directive's inputs
  • Understanding the directive's constructor
  • Better encapsulation of directives
  • Using a directives' inputs and outputs
  • Finding out directives' inputs and outputs
  • Defining the component's inputs and outputs
  • Passing inputs and consuming the outputs
  • Event bubbling
  • Renaming the inputs and outputs of a directive
  • An alternative syntax to define inputs and outputs
  • Basic content projection in Angular 2
  • Projecting multiple content chunks
  • Nesting components
  • Using ViewChildren and ContentChildren
  • ViewChild versus ContentChild
  • The order of execution of the change detectors
  • Change detection strategies
  • Performance boosting with immutable data and OnPush
  • Using immutable data structures in Angular
  • Benefits of DI in Angular 2
  • Dependency resolution with generated metadata
  • Instantiating an injector
  • Introducing forward references
  • Configuring providers
  • Building a hierarchy of injectors
  • Configuring dependencies
  • Using DI with components and directives
  • Introducing the element injectors
  • Using Angular's DI with ES5
  • Defining the root component and bootstrapping the application
  • Using PathLocationStrategy
  • Configuring routes with @RouteConfig
  • Using routerLink and router-outlet
  • Lazy-loading with AsyncRoute
  • Developing template-driven forms
  • Digging into the template-driven form's markup
  • Using the built-in form validators
  • Defining custom control validators
  • Using select inputs with Angular
  • Using the NgForm directive
  • Using composition of control validators
  • Using Angular's HTTP module
  • Developing stateless pipes
  • Using Angular's built-in pipes
  • Developing stateful pipes
  • Using stateful pipes
  • Using Angular's AsyncPipe
  • Web Workers and Angular 2
  • Bootstrapping an application running in Web Worker
  • Migrating an application to Web Worker
  • Making an application compatible with Web Workers
  • Initial load of a SPA with server-side rendering
  • Server-side rendering with Angular 2
  • Text editors and IDEs
  • Hot reloading
  • Using angular-cli
  • Angular 2 seed
  • Angular 2 Webpack starter
  • In the zone.js
  • Simplified data flow
  • The type any
  • The Enum types
  • The Array types
  • The Function types
  • Interface inheritance
  • Implementing multiple interfaces
  • Using existing providers
  • Using the @self decorator
  • Skipping the self injector
  • Having optional dependencies
  • Using multiproviders
  • Declaring providers for the element injectors
  • Exploring DI with components
  • viewProviders versus providers
  • Using AsyncPipe with observables
  • Hot reloading in Angular 2

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

28,05 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
PDF mit Adobe DRM
siehe Systemvoraussetzungen
Hinweis: Die Auswahl des von Ihnen gewünschten Dateiformats und des Kopierschutzes erfolgt erst im System des E-Book Anbieters
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok