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. &quote;Switching to Angular 2&quote; 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
  • |
  • Großbritannien
978-1-78588-711-6 (9781785887116)
1785887114 (1785887114)
weitere Ausgaben werden ermittelt
Minko Gechev is a software engineer who strongly believes in open source software. He has developed numerous such projects, including AngularJS 1.x and Angular 2 style guides, angular2-seed, a static code analyzer for Angular 2 projects, aspect.js, angular-aop, and many others. He runs training courses in JavaScript, Angular, and other web technologies.
Minko loves to experiment with theoretical concepts from computer science and apply them in practice. He has spoken about Angular and software development at worldwide conferences and meetups, including ng-vegas, AngularConnect, ITWeekend Kiev, AngularJS-SF, and Angular Berlin.
  • Cover
  • Copyright
  • Credits
  • Foreword
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Angular 2
  • The evolution of the Web - time for a new framework
  • The evolution of ECMAScript
  • Web Components
  • WebWorkers
  • Lessons learned from AngularJS 1.x in the wild
  • Controllers
  • Scope
  • Dependency Injection
  • Server-side rendering
  • Applications that scale
  • Templates
  • Change detection
  • Summary
  • Chapter 2: The Building Blocks of an Angular 2 Application
  • A conceptual overview of Angular 2
  • Changing directives
  • Getting to know Angular 2 components
  • Components in action
  • Components in Angular 2
  • Pipes
  • Defining pipes
  • Change detection
  • Classical change detection
  • AngularJS 1.x change detection
  • In the zone.js
  • Simplified data flow
  • Enhancing AngularJS 1.x's change detection
  • Understanding services
  • Understanding the new component-based router
  • Angular 2 route definition syntax
  • Summary
  • Chapter 3: TypeScript Crash Course
  • Introduction to TypeScript
  • Compile-time type checking
  • Better support by text editors and IDEs
  • There's even more to TypeScript
  • Using TypeScript
  • Installing TypeScript with npm
  • Running our first TypeScript program
  • TypeScript syntax and features introduced by ES2015 and ES2016
  • ES2015 arrow functions
  • Using the ES2015 and ES2016 classes
  • Defining variables with block scope
  • Meta-programming with ES2016 decorators
  • Using configurable decorators
  • Writing modular code with ES2015
  • Using the ES2015 module syntax
  • Taking advantage of the implicit asynchronous behavior
  • Using aliases
  • Importing all the module exports
  • Default exports
  • ES2015 module loader
  • ES2015 and ES2016 recap
  • Taking advantage of static typing
  • Using explicit type definitions
  • The type any
  • Understanding the Primitive types
  • The Enum types
  • Understanding the Object types
  • The Array types
  • The Function types
  • Defining classes
  • Using access modifiers
  • Defining interfaces
  • Interface inheritance
  • Implementing multiple interfaces
  • Further expressiveness with TypeScript decorators
  • Writing generic code by using type parameters
  • Using generic functions
  • Having multiple type parameters
  • Writing less verbose code with TypeScript's type inference
  • Best common type
  • Contextual type inference
  • Using ambient type definitions
  • Using predefined ambient type definitions
  • Custom ambient type definitions
  • Defining d.ts files
  • Summary
  • Chapter 4: Getting Started with Angular 2 Components and Directives
  • The Hello world! application in Angular 2
  • Setting up our environment
  • Installing our project repository
  • Playing with Angular 2 and TypeScript
  • Digging into the index
  • Using Angular 2 directives
  • The ngFor directive
  • Improved semantics of the directives syntax
  • Declaring variables inside a template
  • Using syntax sugar in templates
  • Defining Angular 2 directives
  • Setting the directive's inputs
  • Understanding the directive's constructor
  • Better encapsulation of directives
  • Using Angular 2's built-in directives
  • Introducing the component's view encapsulation
  • Implementing the component's controllers
  • Handling user actions
  • 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
  • Explaining Angular 2's content projection
  • Basic content projection in Angular 2
  • Projecting multiple content chunks
  • Nesting components
  • Using ViewChildren and ContentChildren
  • ViewChild versus ContentChild
  • Hooking into the component's life cycle
  • The order of execution
  • Defining generic views with TemplateRef
  • Understanding and enhancing the change detection
  • The order of execution of the change detectors
  • Change detection strategies
  • Performance boosting with immutable data and OnPush
  • Using immutable data structures in Angular
  • Summary
  • Chapter 5: Dependency Injection in Angular 2
  • Why do I need Dependency Injection?
  • Dependency Injection in Angular 2
  • Benefits of DI in Angular 2
  • Configuring an injector
  • Dependency resolution with generated metadata
  • Instantiating an injector
  • Introducing forward references
  • Configuring providers
  • Using existing providers
  • Defining factories for instantiating services
  • Child injectors and visibility
  • Building a hierarchy of injectors
  • Configuring dependencies
  • Using the @Self decorator
  • Skipping the self injector
  • Having optional dependencies
  • Using multiproviders
  • Using DI with components and directives
  • Introducing the element injectors
  • Declaring providers for the element injectors
  • Exploring DI with components
  • viewProviders versus providers
  • Using Angular's DI with ES5
  • Summary
  • Chapter 6: Working with the Angular 2 Router and Forms
  • Developing the "Coders repository" application
  • Exploring the Angular 2 router
  • Defining the root component and bootstrapping the application
  • Using PathLocationStrategy
  • Configuring routes with @RouteConfig
  • Using routerLink and router-outlet
  • Lazy-loading with AsyncRoute
  • Using Angular 2 forms
  • 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
  • Two-way data-binding with Angular 2
  • Storing the form data
  • Listing all the stored developers
  • Summary
  • Chapter 7: Explaining Pipes and Communicating with RESTful Services
  • Developing model-driven forms in Angular 2
  • Using composition of control validators
  • Exploring the HTTP module of Angular
  • Using Angular's HTTP module
  • Defining parameterized views
  • Defining nested routes
  • Transforming data with pipes
  • Developing stateless pipes
  • Using Angular's built-in pipes
  • Developing stateful pipes
  • Using stateful pipes
  • Using Angular's AsyncPipe
  • Using AsyncPipe with observables
  • Summary
  • Chapter 8: Development Experience and Server-Side Rendering
  • Running applications in Web Workers
  • 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 single-page application
  • Initial load of a SPA with server-side rendering
  • Server-side rendering with Angular 2
  • Enhancing our development experience
  • Text editors and IDEs
  • Hot reloading
  • Hot reloading in Angular 2
  • Bootstrapping a project with angular-cli
  • Using angular-cli
  • Angular 2 quick starters
  • Angular 2 seed
  • Angular 2 Webpack starter
  • Summary
  • Index

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 dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok