- added a link to a new lesson from egghead.io (ef8d2871)
- don't use async when you load files in serie (9af93ed3, #95)
- avoid errors thrown on empty template files (768b9d75)
- compatibility with jasmine (d4985e1d, #94)
- updated loaders signatures (ba022894)
- keep global params pristine when loading files (6b2306b7, #89)
- defining new run blocks will replace previous ones (af2627b5, #89)
- new parameter
serie
to load files in serie (4ae7a3f3, #47, #86) - new parameter
rerun
to rerun the run blocks (26a64a38, #89) - new function:
isLoaded
to check if a module has been loaded (364c9e9f, #79)
- fix for error:[$compile:multidir] Multiple directives (61fd4dd3, #84, #78, #73, #58)
- css onload patch for some old browsers (14ce3406)
- content inside the oc-lazy-load directive is now compiled on load (9962e2ef, #80)
- allow components with the same name from different types/modules (f981c337, #67)
- initial modules not registered (bcf50004, #58, #71, #73, #77)
- add support for angular 1.3 in bower (bda921b6, #76)
- broadcast for componentLoaded event provides more info (module name and type) (d41b9f53)
- example1 now uses ui-grid instead of ng-grid (e7cf1e83)
- added link to a new article by @kbdaitch (cc6b41db)
- added a link to a new lesson from egghead.io (e231f3cb)
- added a link to a new lesson from egghead.io (9b3c48e4)
- new event ocLazyLoad.moduleReloaded (5010d144)
- added a few links to other examples
- fixed cases where the config block would not be called
(1e29c9d4,
#5).
The config block would not be called if:
- defined multiple times (only the first 1 would be invoked)
- defined with an auto injected module: ['...', function() {}]
- defined after another component: angular.module().controler().config()
- make sure reconfig:true always run all invoke blocks (361ae6b7, #54)
- the config/run blocks were not invoked without reconfig: true (300882a0, #5)
- indexOf polyfill for IE8 (5f71c09c, #52)
- more log messages for debug (bcbca814)
- don't execute config blocks multiple times by default (e2fec59e, #43, #41)
- don't test for .js in path because of requirejs (6045214b)
- test order (8412cb43)
- allow $ocLazyLoadProvider.config to be called multiple times (c590579c, #43)
- prevent duplicate loadings (12bc6b2b, #35, #38)
- auto changelog from commits msg (c089e085)
- prevent duplicate loadings & add a cache busting param (5a5d7f10, #38)
- $ocLazyLoad will now reject promises on errors
- Use the parameter
debug
to show log messages in the console - JS / CSS / Template loaders are available by default in $ocLazyLoad but you can overwrite them with the config
- Better doc (finally! \o/)
- Example1 is now much better !
- Events broadcasted on module / component / file load (#21)
- Added support for $animateProvider #19
- Added support for CSS Loading (And perhaps other file types in the future) #19
- Added loadAll function for use when a state requires resolve on more than one asset. #19
- FIX: Angular JS 1.3.0-beta.8 changed the way config blocks are handled (now invoked last) #19
- Adopted the MIT license as requested in #20
- Added a gulpfile to build dist files (and, in the future, to do tests before the build). Run
npm install
to install the new dependencies andnpm build
to build the dist files. - Breaking change moved the src files to /src and the dist files to /dist. Installations via bower will only see the dist folder
- Moved the examples to /examples
- Fix for bug #18: merged files and incorrect module loading
- Fix for bug #16: config blocks didn't work for module dependencies
- Fix for bug #8: runBlocks can now load new modules (thanks to @rolandzwaga)
- Added an example that makes use of requirejs and uses ngGrid as a lazy loaded module (thanks to @rolandzwaga)
- Added a changelog !
- Added
loadTemplateFile
function. - Merge pull request #6 from BenBlazely/master (Extension of lazy loading to the angular.module DI block, refactored to use promises for tracking progress.)
- Merge pull request #7 from rolandzwaga/master (Added some improvements for apps using angular.boostrap & for duplicated modules)
- Fixed a bug with run blocks not working when they used unloaded modules. Not a complete fix though, more to come when bug #8 is fixed