Skip to content

Commit

Permalink
Fix for bug #18: merged files and incorrect module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Apr 30, 2014
1 parent 9066bdc commit 4d1ee22
Show file tree
Hide file tree
Showing 14 changed files with 1,027 additions and 1,024 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.1.3 (30 April 2014)
* Fix for bug #18: merged files and incorrect module loading

# 0.1.2 (14 April 2014)
* Fix for bug #16: config blocks didn't work for module dependencies

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ocLazyLoad",
"main": "ocLazyLoad.min.js",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/ocombe/ocLazyLoad",
"authors": [
"Olivier Combe <olivier.combe@gmail.com>"
Expand Down
10 changes: 5 additions & 5 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
<!-- // end lazy load -->

<!-- Templates -->
<script type="text/ng-template" id="/partials/testLazyLoad.html">
<script type="text/ng-template" id="partials/testLazyLoad.html">
<div ng-controller="LazyLoadCtrl">
Lazy Hello World Test : {{ worldmessage }}<br/>
Lazier Hello Universe Test : {{ universemessage}}
</div>

<div ng-include="'/partials/testTemplate.html'"></div>
<div ng-include="'/partials/testTemplate2.html'"></div>
<div ng-include="'partials/testTemplate.html'"></div>
<div ng-include="'partials/testTemplate2.html'"></div>
</script>
<!-- // end Templates -->

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.0/angular-ui-router.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/script.js/2.4.0/script.min.js"></script>
<script type="text/javascript" src="ocLazyLoad.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="js/ocLazyLoad.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>
10 changes: 5 additions & 5 deletions example/app.js → example/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ var App = angular.module('app', ['ui.router', 'oc.lazyLoad'])
url: "/", // root route
views: {
"lazyLoadView": {
templateUrl: '/partials/testLazyLoad.html'
templateUrl: 'partials/testLazyLoad.html'
}
},
resolve: {
test: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load({
name: 'TestModule',
files: ['testModule.js']
files: ['js/testModule.js']
});
}],
templateTest: ['$ocLazyLoad', '$templateCache', function($ocLazyLoad, $templateCache) {
return $ocLazyLoad.loadTemplateFile(['partials.html', 'partials2.html']);
return $ocLazyLoad.loadTemplateFile(['partials/partials.html', 'partials/partials2.html']);
}]
}
});
Expand All @@ -47,11 +47,11 @@ var App = angular.module('app', ['ui.router', 'oc.lazyLoad'])
modules: [
{
name: 'HelloWorld',
files: ['helloWorldModule.js']
files: ['js/helloWorldModule.js']
}
// {
// name: 'TestModule',
// files: ['testModule.js'],
// files: ['js/testModule.js'],
// template: 'partials/testLazyLoad.html'
// }
],
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 4d1ee22

Please sign in to comment.