Angularjs $state. Go page does not refresh data __js

Source: Internet
Author: User

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

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

After the search reference reference

Setting up a Routing controller
$statePrivider. State ({}) The parameter in this method is an object, where the property configuration is Cache:true/false, and the default is true. Here, configure it to false, at which point the state will not have a cache, and you can implement the Refresh page every time it is in that state, which is equivalent to a forced flush.

. State (' Marketbeian ', {
                URL: '/market/beian ',
                templateurl: ' views/market/beian.html ',
                cache:false,
                controller: ' Marketbeianctrl ',
                data: {
                    title: ' Job record information management '
                }
            }
Related Article

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.