postpone view initializations?

2 posts, 1 answers
  1. Answer
    Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 16 Oct 2013 Link to this post

    lets say you have something like:

            <div id="tabstrip-location" 
                 data-role="view"  
                 data-init="app.locationService.initLocation"...

    does that initialization function get called right after the app loads? as opposed to when the view is actually displayed?

    is there a simple way to call initialization functions after another event has first occurred? say, after the user logs in?
  2. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 17 Oct 2013 Link to this post

    Yes,

    instead of: data-init="app.locationService.initLocation",
    just call: app.locationService.initLocation(),
     whenever needed

    [or whatever the initialization function in question is]
Back to Top