Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))
});
});