ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

Named views lazy loading

Open skumarvenkat opened this issue 11 years ago • 1 comments

Loading named views at run time(after loading state) rather than loading at the time of state route access.

I tried to load view using below code but view is not showing up in UI.

$view.load("viewName@stateName", { 
  view: { templateUrl:  'Test/Index' }, 
  locals: $state.myDst.globals, 
  params: $state.myStateParams, 
  notify: $state.myOptions.notify
})

After calling above code we are trying to add view to tab

<tab ng-repeat="tab1 in tabs">
      <div>
        <div ui-view='{{tab.view}}'></div>
      </div>
 </tab>

Can we load named views dynamically after route access?

skumarvenkat avatar May 20 '15 20:05 skumarvenkat

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb

eddiemonge avatar Aug 19 '15 19:08 eddiemonge