How execute code every time that I view a page

后端 未结 3 1203
难免孤独
难免孤独 2020-11-29 11:19

I\'m searching the mode to execute a code (in my case the retrieve of data to visualize from server) every time I view a page (every time the page is called by splitAp

3条回答
  •  忘掉有多难
    2020-11-29 12:03

    I´m using onBeforeShow in my target views for that.

    onBeforeShow : function(evt) {
        // gets called everytime the user 
        // navigates to this view
    },
    

    This is a function which is fired by a NavContainer on its children in case of navigation. It´s documented in the NavContainerChild.

提交回复
热议问题