How to use the @uirouter/angular.loadNgModule function in @uirouter/angular

To help you get started, we’ve selected a few @uirouter/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ui-router / sample-app-angular-hybrid / app / contacts / contacts.futurestate.ts View on Github external
ngmodule.config($stateProvider => {
  $stateProvider.state({
    name: 'contacts.**',
    url: '/contacts',
    // loadNgModule lazy loads an Angular 2 NgModule (or UIRouterModule)
    lazyLoad: loadNgModule(() => System.import('./index').then(result => result.ContactsModule))
  });
});

@uirouter/angular

State-based routing for Angular

MIT
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages