万本电子书0元读

万本电子书0元读

顶部广告

Mastering Angular Components电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Gion Kunz

出  版  社:Packt Publishing

出版时间:2018-07-18

字       数:55.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Develop modern user interfaces using Angular 6 and its component-based architecture. Key Features * Build better web applications with highly scalable concepts using Angular * Learn new ways to design your web applications * Build a fully functional web application that lets you tackle real-world user interface problems using Angular components Book Description Angular framework embraces a mature user interface (UI) component architecture, a powerful tool when developing scalable application interfaces. The simple and deterministic design of Angular components supports you in building large and scalable component-based applications. Mastering Angular Components covers a new holistic way of thinking about UI development, and helps you discover the power of Angular 6 components through various examples. The book starts with an introduction to component-based user interfaces and how Angular 6 manages this concept. Following a step-by-step approach, you will build a fully functional task-management application using Angular. You’ll start with basic layout components, adding some core task-management components before completing the first draft of your application. You will then move on to working through a refactoring exercise in order to learn how to enhance the way you deal with states and data. Once you have got to grips with all this, you will study how to make use of the Angular router within your application. By the end of this book, you will be able to constantly refine the functionality of your application and create components that render SVG graphics, add a time-tracking feature, visualize data using third-party library Chartist, and even create a plugin architecture using Angular components. What you will learn * Use TypeScript to create Angular 6 components * Leverage component composition to solve complex UI requirements * Build an architecture using pure components and container components * Explore the basics of RxJS observable streams and use them to build your application reactively * Communicate between components using child queries * Implement the Angular router to make your application navigable * Build reusable and dynamic graphical content using Angular components and SVG * Integrate third-party libraries such as Moment.js and Chartist into your existing Angular application Who this book is for Mastering Angular Components is for you if you are an Angular developer who already has a good understanding of basic frontend web technologies such as JavaScript, HTML, and CSS.
目录展开

Title Page

Copyright and Credits

Mastering Angular Components Second Edition

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Conventions used

Get in touch

Reviews

Component-Based User Interfaces

Thinking in components

Components – the organs of user interfaces

Encapsulation

Composability

Components, invented by nature

My UI framework wishlist

Time for new standards

Template elements

Shadow DOM

Angular's component architecture

Everything is a component

Your first component

Angular NgModule

JavaScript of the future

I speak JavaScript, translate, please!

Classes

Modules

Template strings

TypeScript

History with TypeScript in Angular

Decorators

Tools

Node.js and npm

Angular CLI

Summary

Ready, Set, Go!

Managing tasks

Vision

Starting from scratch

Main application component

Resource download

Main application NgModule

Bootstrapping

Running the application

Recap

Creating a task list

Recap

The right size of components

Recap

Adding tasks

Recap

Custom UI elements

Recap

Task data service

Recap

Filtering tasks

Recap

Summary

Dealing with Data and State

Reactive programming with RxJS

HTTP client and in-memory web APIs

Using behaviour subjects

Loading data in the task service

Subscribing in the view using the async pipe

Recap

Immutability

Immutability with TypeScript

Pure components

Introducing container components

Purifying our task list

Summary

Thinking in Projects

Moving into projects

Project service

Project component

Updating the task list container

Integrating the project component

Recap

Creating a tabbed interface component

Building the main navigation

Composition using content projection

Creating navigation components

Providing a project navigation

Recap

One editor to rule them all

Creating an editor component

Integrating the editor component

Recap

Dealing with users

User service

User area component

Integrating the user area component

Building a commenting system

Introducing a model for comments

Building the comment component

Building the comments component

Integrating the commenting system into projects

Recap

Summary

Component-Based Routing

An introduction to the Angular router

Composition using the router

Routing with container components

Router configuration

Back to the routes

Composing projects using the router

Child routes for project details

Guarding our projects

Summary

Keeping up with Activities

Creating a service for logging activities

Logging activities

Leveraging the power of SVG

Styling SVG

Building SVG components

Building an interactive activity slider component

Projection of time

Rendering activity indicators

Bringing it to life

Recap

Building the activity timeline

Summary

Components for User Experience

Tag management

A model for our tags

Creating a tags service

Rendering tags

Integrating tags using a pipe

Supporting tag input

Creating a tag input directive

Creating a tags select component

Integrating tag selection within the editor component

Integrating tag selection in project comments

Finishing up our tagging system

Drag and drop

Updating our model for ordering tasks

Implementing the draggable directive

Implementing a drop target directive

Integrating drag and drop

Recapitulate on drag and drop

Summary

Time Will Tell

Task details

Navigating to task details

Enabling tags for tasks

Managing efforts

No-UI time duration input

Components to manage efforts

The visual efforts timeline

Recapitulating on efforts management

Summary

Spaceship Dashboard

Introduction to Chartist

Projects dashboard

Creating the projects dashboard component

Project summary component

Integrating the projects dashboard

Creating your first chart

Processing activity data

Creating an activity chart

Visualizing open tasks

Preparing task data

Modeling the problem

Creating an open tasks chart

Creating a chart legend

Making the tasks chart interactive

Summary

Putting Things to the Test

An introduction to Jasmine and Karma

Karma and integration to Angular CLI

Writing our first test

Spying on component output

Utilities to test components

Injecting in tests

Using TestBed for running Angular tests

Component fixture

Mocking child components

Mocking services

Testing components in action

Testing component interaction

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部