This tag is for ocLazyLoad, a solution for lazy loading with AngularJS.
Questions tagged [oclazyload]
133 questions
17
votes
3 answers
AngularJS- Dynamic Loading of script files using LazyLoad- Webpack
Right now in my index.html page I have links to two CDN files one being a JS and the other a CSS file.
i.e.
in the the bottom of my body
https://somedomain.com/files/js/js.min.js
and in the head
https://somedomain.com/files/css/css.min.css
But…

StevieB
- 6,263
- 38
- 108
- 193
16
votes
4 answers
Loading html and Controller from server and creating dynamic states UI - router
I am looking for a Solution to load my App Content dynamically from the Server.
My Scenario:
Lets say we have 2 Users (A and B), my App consists of different Modules like lets say a shoppingList and a calculator, now my goal would be the User logs…

stackg91
- 584
- 7
- 25
10
votes
2 answers
webpack require.ensure first parameter use
What is the use of first parameter of webpack require.ensure first parameter?
https://webpack.github.io/docs/code-splitting.html
require.ensure(dependencies, callback)
I tried to let the first parameter filled or empty…

SooCheng Koh
- 2,271
- 3
- 21
- 34
10
votes
2 answers
Karma tests error "unable to init ocLazyLoad"
From the quickstart sb-admin-angular, I am trying to run the tests, but I get the error unable to init ocLazyLoad. (This is a Windows7 machine.)
The command I use to run the tests is:
$ grunt test --force
I understand from this thread that I must…

Don Subert
- 2,636
- 4
- 27
- 37
7
votes
2 answers
Controller is loaded in DOM but the view not loaded and can't find controller- oclazyload with jade(pugjs)
I am using angular 1.6 for my project and angular-ui-routing for routing with PugJs for HTML templates.
I am trying to implement Lazyload in my application, but somehow its not working may be due to jade.
code :
var app =…

the_mishra
- 813
- 9
- 24
6
votes
2 answers
How do modules in ocLazyLoad loaded, parallel or in sequence?
I'm using ocLazyLoad library to achieve lazy loading for all dependencies in my project. I know that by default files are loaded in parallel and to make it loaded in sequence I should use serie:true…

Anatoly
- 5,056
- 9
- 62
- 136
4
votes
2 answers
Angular 1.5.0. Root Template is duplicated when reloading the page with UI GRID via ocLazyLoad. $$animateJs is undefined
I'm using:
Angular, angular-animate both are v. 1.5.0
Angular UI Grid v. 3.1.1
ocLazyLoad v. 1.0.9
Angular ui router v. 0.2.18
The Error is:
TypeError: $$animateJs is not a function
at d (angular-animate.js:2141)
at…

InsFi
- 1,298
- 3
- 14
- 29
4
votes
0 answers
ocLazyLoad randomly not loading components
I use angular.ui.router to manage routing in my single page application. A part of the configuration looks like this:
.state('app.mymodule', {
url: '/mymodule',
resolve: loadSequence('ngResource', 'MyModule'),
template: '

Giacomo Voß
- 997
- 8
- 17
3
votes
0 answers
Angular Batarang conflicting with ocLazyLoad
I was making a POC to test ocLazyLoad for lazy loading the parts of app.
After lot of debugging, I found out that Angular Batarang is conflicting with ocLazyLoad in some way.
I'm getting following error in reject callback of promise when I lazy load…

pranavjindal999
- 2,937
- 2
- 26
- 35
3
votes
3 answers
How to reload templates (html) when releasing a new version of a SPA?
I'm currently running into trouble when releasing new versions of my SPA since the html templates are being cached by the browser.
My SPA uses Angular 1.5, ocLazyload and ui-router. I have configured gulp tasks to use cache-busting technique (with…

Gabriel Araujo
- 719
- 3
- 9
- 15
3
votes
1 answer
AngularJS, ocLazyLoad and ui-router: How to load on demand without centralize 'state' on the main app.js class
I'm very new on ui-router and ocLazyLoad and probably this question could be easy to resolve but the fact that I'm writing here its because I did not have luck searching on blogs. My app is running nice with ocLazyLoad now.
This is my configuration…

napstercake
- 1,815
- 6
- 32
- 57
3
votes
1 answer
$$animateJs is not a function when using oclazyload, uigrid, and nganimate
I'm using Typescript 1.7, AngularJS 1.5.7, oclazyload 1.0.9, ui-grid 3.2.5, ui-router 0.3.1, requirejs 2.2.0
First, everything was working fine until I upgraded from Angular 1.4.3 to 1.5.7
In my code I pull in source like so from the require…

Brandon
- 984
- 1
- 11
- 26
3
votes
1 answer
ng-click event not working with ocLazyLoad
I have a basic Angular.js app which is using ocLazyLoad for loading the application files. I am using the skeleton of the sbAdminApp template.
My problem is that when I use a template with an ng-click event, the click event is not being fired. It is…

Shai Aharoni
- 1,955
- 13
- 25
3
votes
0 answers
Inject angular module using $ocLazyLoad.inject method
Trying to inject an Angular module to my main module using oclazyload. Please note, I am not using RequireJs or oclazyload to load the JavaScript file currently.
For now I added the module inside Index HTML Script tag.
The inject method executes…

Jojo Peter
- 141
- 2
- 9
3
votes
3 answers
ocLazyload not loading the module
In html I am loading the oclazyload before my app.js -