Questions tagged [oclazyload]

This tag is for ocLazyLoad, a solution for lazy loading with AngularJS.

Resources

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
  • 5,455
  • 35
  • 99
  • 181
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…
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,446
  • 4
  • 22
  • 37
8
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
  • 1,911
  • 3
  • 18
  • 32
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
  • 761
  • 8
  • 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
  • 4,553
  • 6
  • 42
  • 110
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,110
  • 2
  • 11
  • 27
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ß
  • 775
  • 5
  • 14
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,390
  • 1
  • 22
  • 29
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…
RicardoGonzales
  • 1,611
  • 3
  • 26
  • 50
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…
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,828
  • 11
  • 24
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
  • 121
  • 1
  • 6
3
votes
3 answers

ocLazyload not loading the module

In html I am loading the oclazyload before my app.js -
Joy
  • 4,516
  • 5
  • 38
  • 66
3
votes
1 answer

Using ui-router and ocLazyLoad to load a controller and set the partial to it

I'm a complete Angular noob and trying to do some fancy stuff quickly, so forgive me if this is a dumb question. I've created a website that uses routing, and I'm using ui-router for the routing instead of the standard Angular router. The theory is…
Todd Davis
  • 5,493
  • 9
  • 47
  • 80
1
2 3
8 9