This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13815|Reply: 2

[ionic] Ionic Development Android App Practice (3): News Video List

[Copy link]
Posted on 6/20/2018 4:08:32 PM | | | |
Ionic develops an Android app and wants to display a news list, no nonsense, first look at the renderings of the finished product, as shown below:



The data in the list is the interface of Tencent requested, and then displayed on the page, not written dead!

Interface address:



Data requests are made using HttpClient, which is an evolution of the existing Angular HTTP API in a separate @angular/common/http package. This is to ensure that the existing codebase can be slowly migrated to the new API.

Due to the version update of Angular,Http will gradually be replaced by HttpClient, so some methods in Http are not available in HttpClient.

Use HttpClient

app.module.ts You need to add a module reference to it, as follows:



Finally, attach the source code of the individual page

Tourists, if you want to see the hidden content of this post, pleaseReply





Previous:No component factory found for ListPage. Did you add it to
Next:ionic3 page lifecycle events (hooks)
Posted on 6/21/2018 9:35:02 AM |
Looks like a good page!
Posted on 6/21/2018 9:35:35 AM |
It's just that MB grains are too difficult to deal with!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com