![](https://csdnimg.cn/release/download_crawler_static/87256826/bg12.jpg)
xviii
■Chapter 23: Making HTTP Requests ������������������������������������������������������������������ 665
Preparing the Example Project ������������������������������������������������������������������������������������� 666
Configuring the Model Feature Module ����������������������������������������������������������������������������������������������667
Creating the Data File ������������������������������������������������������������������������������������������������������������������������� 667
Running the Example Project ������������������������������������������������������������������������������������������������������������� 668
Understanding RESTful Web Services �������������������������������������������������������������������������� 669
Replacing the Static Data Source ��������������������������������������������������������������������������������� 670
Creating the New Data Source Service ���������������������������������������������������������������������������������������������� 670
Configuring the Data Source���������������������������������������������������������������������������������������������������������������673
Using the REST Data Source ���������������������������������������������������������������������������������������������������������������673
Saving and Deleting Data �������������������������������������������������������������������������������������������������������������������675
Consolidating HTTP Requests �������������������������������������������������������������������������������������� 678
Making Cross-Origin Requests ������������������������������������������������������������������������������������� 680
Using JSONP Requests ����������������������������������������������������������������������������������������������������������������������� 681
Configuring Request Headers ��������������������������������������������������������������������������������������� 683
Handling Errors ������������������������������������������������������������������������������������������������������������ 685
Generating User-Ready Messages ������������������������������������������������������������������������������������������������������ 686
Handling the Errors ����������������������������������������������������������������������������������������������������������������������������� 688
Summary ���������������������������������������������������������������������������������������������������������������������� 690
■Chapter 24: Routing and Navigation: Part 1 ������������������������������������������������������ 691
Preparing the Example Project ������������������������������������������������������������������������������������� 692
Getting Started with Routing ���������������������������������������������������������������������������������������� 693
Creating a Routing Configuration��������������������������������������������������������������������������������������������������������694
Creating the Routing Component ��������������������������������������������������������������������������������������������������������696
Updating the Root Module ������������������������������������������������������������������������������������������������������������������ 696
Completing the Configuration �������������������������������������������������������������������������������������������������������������696
Adding Navigation Links ��������������������������������������������������������������������������������������������������������������������� 698
Understanding the Effect of Routing ��������������������������������������������������������������������������������������������������� 700
Completing the Routing Implementation ���������������������������������������������������������������������� 702
Handling Route Changes in Components ������������������������������������������������������������������������������������������� 702
Using Route Parameters ��������������������������������������������������������������������������������������������������������������������� 705
■ Table of ConTenTs