The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Simple Lazy Loaded Angular Module Syntax with ocLazyLoad

Simple Lazy Loaded Angular Module Syntax with ocLazyLoad

1:49
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
Olivier

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).

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?