[Ionic Open source Project Tutorial]-10th News Detail Page User experience optimization

Source: Internet
Author: User

Directory
    • [Ionic Open source Project Tutorial] 1th Preface, Technical Reserve, Environment building, common command

    • [Ionic Open source Project Tutorial] 2nd new Project, architecture page, configuration app.js and Controllers.js

    • [Ionic Open Source Project Tutorial] 3rd talk about using tabs and Slidebox to implement left and right sliding menu

    • [Ionic Open source Project Tutorial] 4th. Get news list through service layer

    • [Ionic Open source Project Tutorial] 5th how to use global configuration in a project

    • [Ionic Open source Project Tutorial] 6th talk about the use of filter filters

    • [Ionic Open source Project Tutorial] 7th implementation Pull-up refresh pull-up load ion-refresher and Ion-infinite-scroll

    • [Ionic Open Source Project Tutorial] 8th talk about loading data according to the menu category (important)

    • [Ionic Open source Project Tutorial] 9th the implementation of the News detail page [Ionic open source Project Tutorial]

    • [Ionic Open source Project Tutorial] 10th talk about the user experience optimization of the News detail page

    • [Ionic Open source Project Tutorial] 11th Lecture Package Basecontroller Implement controller inheritance
    • [Ionic Open source Project Tutorial] 12th, the implementation of the Medical module and service layer Loadmore and Dorefresh extraction Package
    • ? [Ionic Open source Project Tutorial] 13th, service layer continued optimization, extraction of public service, and life and agriculture two modules of the implementation

User experience optimization for the News Details page (tabs display and hide)

[]

There are two places that have been optimized:

1. Hide tab When entering the details page

2. Picture resizing on the details page

1. Hide tab When entering the details page:

The code that hides the tabs is remembered to be placed behind the state.go and then displayed when the page becomes the active view Showbar

  function (item) {            $state. Go (' tab.tab1-details ', {id:item.id, title:item.title})            $ Ionictabsdelegate.showbar (false);        }        $scope. $on (function  () {            console.log (' has become the active view ');            $ionicTabsDelegate. Showbar (true);        });

2. Picture size adjustment in the news detail content

In Style.css

{  width: 100%;}

Referencing in tab1-details.html

<Ion-viewtitle= "{{title}}">   <ion-contentclass= "padding">        <Divclass= "message"ng-bind-html= "Item.message"></Div>   </ion-content> </Ion-view>

If you have any questions, please contact me by contacting us at the bottom of the article.

Finish!

[Ionic Open source Project Tutorial]-10th News Detail Page User experience optimization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.