Simple Lazy Loaded Angular Module Syntax with ocLazyLoad

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

ocLazyLoad offers several ways to lazy load your AngularJS modules. This lesson looks at the syntax for lazy loading dependencies declared in the module definition.

Olivier
~ 10 years ago

Just be aware that this syntax will only work on lazy loaded modules (because ocLazyLoad will be able to parse the dependencies and act accordingly). It won't work if you use this syntax in a normal module that you load at bootstrap (without using ocLazyLoad to load it).