首頁 > 計算機網(wǎng)絡(luò) >
網(wǎng)絡(luò)與通信
> Architecting Angular Applications with Redux,RxJS,and NgRx最新章節(jié)目錄
舉報

會員
Architecting Angular Applications with Redux,RxJS,and NgRx
IfyouhavebeendevelopingAngularapplicationsandwanttodivedeeperintotheAngulararchitecturewithRedux,RxJS,andNgRxtowriterobustwebapps,thenthisbookisforyou.
目錄(290章)
倒序
- 封面
- Title Page
- Copyright and Credits
- Architecting Angular Applications with Redux RxJS and NgRx
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Foreword
- Contributors
- About the author
- About the reviewers
- 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
- Quick Look Back at Data Services for Simple Apps
- Model-View-Controller – the pattern we all know
- Cohesion and coupling – establishing a common language
- Explaining the components of MVC
- The model
- The view
- The controller
- Interactions – the behavior between the components
- MVC summary
- An MVC flow in Angular
- The model
- The component – a controller and a building block
- First responder to a route
- Used as a building block
- Components from an architectural standpoint
- NgModule – our new facade (and some other bits)
- Using ES2015 modules
- Consuming a module
- An Angular example
- Multiple exports
- The default import/export
- Renaming imports
- The service
- Service without dependencies
- Service with dependencies
- Dependency Injection
- Dependency Injection in Angular using providers
- Overriding an existing construct
- Overriding at runtime
- Overriding constants
- Resolving your dependencies with @Injectable
- Fetching and persisting data with HTTP – introducing services with Observables
- Fetching data with the HTTP service
- Summary
- 1.21 Gigawatt – Flux Pattern Explained
- Core concepts overview
- A uniform data flow
- Action – capture the intent
- Dispatcher – the spider in the web
- Listening to the dispatcher
- The store – managing state data retrieval and callbacks
- The view
- Demoing a uniform data flow
- Creating a selection view
- Adding the dispatcher
- Adding the store
- Adding a selected view
- Running the demo
- Adding more actions to our flow
- Cleaning up the view
- Cleaning up the store
- Adding EventEmitter
- Adding to and cleaning up the register method
- Further improvements
- Adding immutability
- Summarizing
- Adding AJAX calls
- An even bigger solution
- Summary
- Asynchronous Programming
- The callback pattern
- The callback pattern on the web
- The callback pattern in Node.js
- Problems with structuring async code – callback hell
- Promises
- Thenables
- Handling rejected promises
- Chaining – dealing with several promises
- Asynchronous libraries
- Async library
- async.map()
- async.parallel()
- async.series()
- Async/await
- Summary
- Functional Reactive Programming
- Functional programming versus imperative programming
- Imperative programming versus declarative programming
- First-class higher-order functions
- Pure functions
- Recursion
- No more loops
- Reoccurring pattern
- Summarise
- Count
- Width
- Asynchronous data streams
- Comparing lists to async streams – preparing for RxJS
- Combining the functional programming paradigm with streams
- Projection
- Filtering
- Combining mindsets
- Summary
- RxJS Basics
- Observer pattern
- RxJS core concepts
- Observable and Observer
- Producer
- Observable error and completion
- Operator
- Creating Observables
- Creation operators
- of()
- interval()
- from()
- fromEvent()
- bindCallback()
- Cleanup
- Subscriptions
- Creating a core implementation of RxJS
- Implementing create()
- Handling subscriptions
- Adding operators
- Revisiting the basics adding errors and complete
- Summary
- Manipulating Streams and Their Values
- Starting out
- Understanding operators
- Stream in a stream
- AJAX
- fetch()
- ajax() operator
- Cascading calls
- A deeper look
- Creation operators
- of() operator
- from() operator
- range() operator
- fromEvent() operator
- Combination
- merge() operator
- combineLatest()
- zip()
- concat()
- Mathematical
- max
- min
- sum
- Time
- interval() operator
- timer() operator
- delay() operator
- sampleTime() operator
- debounceTime() operator
- Grouping
- buffer() operator
- bufferTime() operator
- Thinking in streams
- Summary
- RxJS Advanced
- Hot cold and warm Observables
- Making a stream hot
- Warm streams
- Subjects
- Using Subject for cascading lists
- BehaviorSubject
- ReplaySubject
- AsyncSubject
- Error handling
- Catch and continue
- Ignoring the error
- Retry
- Advanced Retry
- Marble testing
- Set up
- Writing your first marble test
- Fleshing out with more tests
- Pipeable operators
- Creating reusable operators with let()
- Shifting to pipeable operators
- Summary
- Redux
- Principles
- Single source of truth
- Read-only states
- Changing states with pure functions
- Core concepts
- Immutability patterns
- Changing a list
- Changing an object
- Using reducers
- Merging all reducers together
- Data flow
- Creating the action
- Creating a controller class – create-view.js
- Creating a store implementation
- Testing out our store
- Cleaning up the implementation
- Creating our second controller class – list-view.js
- Adding subscription capability to our store
- Creating a program
- Setting up our environment
- Creating the missing files and running our program
- Dealing with asynchronous calls
- Creating a demo with Redux and asynchronous
- Best practices
- Summary
- NgRx – Reduxing that Angular App
- NgRx overview
- A word on state management
- @ngrx/store – state management
- A more complex example – a list
- Best practices
- A cleanup example
- Create a dedicated directory and feature module
- Add reducer and constants
- Moving the component to our jedi directory
- Registering our reducer with the store
- Leveraging types and feature modules
- Going from forRoot() to forFeature()
- Setting up forFeature() from string to selection function
- Introducing NgRx types for setting up the state
- Giving forFeature() a type
- Several states in the same feature module
- Adding the counter-list reducer
- Adding the component
- Adding the constants
- Adding the action methods
- Adding the model
- Register our reducers
- Component architecture
- @ngrx/store-devtools – debugging
- @ngrx/effects – working with side effects
- Installing and setting it up
- Creating our first effect – a realistic scenario
- Creating our constants
- Action creators
- Reducer with a new type of default state
- The effect – listening to a specific dispatched action
- Adding a component – introducing selectors
- Extending our example with the create effect
- Updating the constants file
- Updating the reducer
- Additional actions
- Adding another effect
- Supporting the effect in our component
- Running a demo of the app
- Summary
- NgRx – In Depth
- @ngrx/entity
- Setting it up
- Selecting our data
- Adding the full CRUD
- Creating users
- Updating users
- Deleting users
- @ngrx/router-store
- Installation and set up
- Investigating the router state
- Custom serialization
- Navigating through dispatch
- Understanding NgRx – building our own micro implementation
- Adding a store
- Merging the states in a better way
- Implementing a reducer and integrating it with the store
- Dealing with slices of state
- Handling side effects
- @ngrx/schematics
- Setting it up
- Generating constructs
- Generating actions
- Generating a container
- Generating an effect
- Generating an entity
- Generating a feature
- Generating a reducer
- Generating a store
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-08-27 19:56:57
推薦閱讀
- 光網(wǎng)絡(luò)評估及案例分析
- 從區(qū)塊鏈到Web3:構(gòu)建未來互聯(lián)網(wǎng)生態(tài)
- Truffle Quick Start Guide
- OpenLayers Cookbook
- 局域網(wǎng)組建、管理與維護項目教程(Windows Server 2003)
- SD-WAN架構(gòu)與技術(shù)(第2版)
- 互聯(lián)網(wǎng)安全的40個智慧洞見:2014年中國互聯(lián)網(wǎng)安全大會文集
- 物聯(lián)網(wǎng)長距離無線通信技術(shù)應(yīng)用與開發(fā)
- TD-LTE無線網(wǎng)絡(luò)規(guī)劃與設(shè)計
- 組網(wǎng)技術(shù)與網(wǎng)絡(luò)管理
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)
- Cisco無線局域網(wǎng)配置基礎(chǔ)
- 黑客與反黑工具使用詳解
- 智能物聯(lián)安防視頻技術(shù)基礎(chǔ)與應(yīng)用
- Microsoft System Center 2012 Configuration Manager:Administration Cookbook
- 網(wǎng)絡(luò)是怎樣連接的
- 產(chǎn)品經(jīng)理游戲化設(shè)計思維70計
- 一本書讀懂24種互聯(lián)網(wǎng)思維
- 5G時代:生活方式和商業(yè)模式的大變革
- 深度實踐OCR:基于深度學(xué)習(xí)的文字識別
- 企業(yè)自動駕駛網(wǎng)絡(luò)架構(gòu)與技術(shù)
- 零距離接觸物聯(lián)網(wǎng)
- 計算機網(wǎng)絡(luò)管理原理與實現(xiàn)
- Go Web Development Cookbook
- 智能穿戴:物聯(lián)網(wǎng)時代的下一個風(fēng)口
- The Agile Developer's Handbook
- Progressive Web Application Development by Example
- 網(wǎng)絡(luò)工程師紅寶書:思科華為華三實戰(zhàn)案例薈萃
- 物聯(lián)網(wǎng)感知技術(shù)與產(chǎn)業(yè)
- 實施Cisco統(tǒng)一通信VoIP和QoS(CVOICE)學(xué)習(xí)指南(第4版)