Ionic Page Direct Jump

Source: Internet
Author: User

$state. Go page does not refresh data

If you enter Market/beian/add add data, save the submission back Market/beian list page, do not automatically update the data, you have to manually pull down the refresh will come out

$state. Go ("Marketbeian", {},{reload:true});

Set up a routing controller
$statePrivider. State ({}) The parameter in this method is an object, where the Item property configuration is Cache:true/false, which defaults to true. In this case, it is configured to False, at this point, the state will not have a cache, you can implement each time you are in that State, refresh the page, it is equivalent to implement a forced flush.

. State (' Marketbeian ', {url: '/market/beian ', Templateurl: ' views/market/beian.html ', cache:false, Controller: ' Marketbeianctrl ', data: {title: ' job record Information Management '}}

Go back to the previous page: $ionicHistory.goBack(); 没有属性,记得在controller的function参数里加上$ionicHistory

How to implement a refresh please refer to:

Http://www.cnblogs.com/chenhuili/p/5005840.html

Ionic Page Direct Jump

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.