Skip to content

Commit ebcc6f2

Browse files
docs(lazyLoad): Switch from System.import() to import()
1 parent 935b706 commit ebcc6f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hooks/lazyLoad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { StateRule } from '../url/interface';
2424
* ```
2525
* .state('abc', {
2626
* component: 'fooComponent',
27-
* lazyLoad: () => System.import('./fooComponent')
27+
* lazyLoad: () => import('./fooComponent')
2828
* });
2929
* ```
3030
*

src/state/interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ export interface StateDeclaration {
563563
*
564564
* ```
565565
* .state('abc', {
566-
* lazyLoad: (transition, state) => System.import('./abcService')
566+
* lazyLoad: (transition, state) => import('./abcService')
567567
* }
568568
* ```
569569
*
@@ -621,7 +621,7 @@ export interface StateDeclaration {
621621
* {
622622
* name: 'parent.**',
623623
* url: '/parent',
624-
* lazyLoad: () => System.import('./lazy.states.js')
624+
* lazyLoad: () => import('./lazy.states.js')
625625
* }
626626
* ```
627627
*

0 commit comments

Comments
 (0)