This tag is for ocLazyLoad, a solution for lazy loading with AngularJS.
Questions tagged [oclazyload]
133 questions
1
vote
1 answer
How do I get Component Router $router to work with Webpack & ocLazyLoading?
I am trying to get my Angular/Webpack/ocLazyLoad app to work. My app code looks like this:
var app = angular.module('app', ['oc.lazyLoad', 'ngComponentRouter']);
app.config(function ($locationProvider)…

julesrose
- 47
- 9
1
vote
0 answers
How do you load service, resolve a function and pass data to controller through ocLazyLoad state?
In a $stateProvider state I want to:
Load a service JS file
Resolve a service function (API call)
Pass resulting data to controller
controllers/my-controller.js
angular.module('app').
controller('MyController', ['$scope', function($scope,…

Michael Gradek
- 2,628
- 3
- 29
- 35
1
vote
0 answers
Google maps not working with ocLazyLoading in subequent request
I am having an issue with google maps with ocLazyLoading receiving an error message "You have included the Google Maps API multiple times on this page. This may cause unexpected errors". I am using ocLazyLoading to Load all dependencies whenever it…

Tatipaka
- 190
- 2
- 13
1
vote
0 answers
OcLazyLoader path is not working controller is not loading
I am trying to load js and css when corresponding state has reached
i am isunf OcLazyLoader and
i have mentioned controller name and i am trying to load controller defintion using ocloader but i am getting controller undefined
My config file is
…

nithin prasad
- 168
- 1
- 9
1
vote
1 answer
Load angular module at runtime with/without ocLazyLoad
I have a couple of modules that I am trying to load at runtime based on some conditions. Currently I am using theocLazyLoad module but I am the loaded module's are not working at all. Everything loads fine, there are no errors being thrown.
I first…

naughty boy
- 2,089
- 3
- 18
- 28
1
vote
1 answer
How to instantiate some objects in service before controller uses the service objects when its view is loaded
I have a stateprovider which loads view and setup controller. Now the controller depends on service which should provide updated objects. For example, i have a state - s, with template v, and controller c. c depends on service s. s has method -lets…

Shashi
- 33
- 5
1
vote
1 answer
Parse JS SDK login does not keep the current user info using AngularJs ui routing
Here is my module config and run:
angular.module('FXBApp', [
'ui.bootstrap'
,'ui.router'
,'oc.lazyLoad'
,'parse-angular'
]).
config(['$urlRouterProvider','$stateProvider',…

Ahmed Roshdy
- 381
- 6
- 15
1
vote
2 answers
Controller not loading ocLazyLoad
I have newly included the lazyload library.
var app = angular.module(subdomain, ['ngRoute','ngResource','ngCookies','ngSanitize','angular-md5','mm.foundation','chieffancypants.loadingBar',…

TorreZz
- 115
- 10
1
vote
0 answers
oc-lazy-load for more than 1 directive
i'm starting with angular,express and node js and i'm trying to load 2 directives in an html page using the oc-lazy-load directive.
I'm doing like this: https://oclazyload.readme.io/docs/oclazyload-directive

Ricardo Machado
- 787
- 1
- 8
- 16
1
vote
0 answers
Cannot load nested views' controllers with ocLazyload and ui-router
I have the code below:
.state('shops', {
abstract: true,
url: "/shops/:shopid",
data: {
pageTitle: 'Shop Settings'
},
views: {
'content@': {
templateUrl:…

Burak
- 5,706
- 20
- 70
- 110
1
vote
0 answers
AngularJS, oclazyload loading modules with dynamic state
I've implemented module to load modules when it's required. So i've implemented structure to get states and js files:
--app
--main (loader module)
--views
--controllers
--services (global)
--modules (custom…

houssemdh
- 11
- 1
1
vote
0 answers
dynamic ui router with ocLazyLoad issue
Inspired from Jason Watmore's AngularJS example project, decided to tryout stateproviders in it. And it became successful. The next attempt was to try ocLazyLoad and that too worked while providing the configurations in app.config. Then tried to…

Budha
- 19
- 4
1
vote
1 answer
Resolve resource call before controller load with OcLazyLoad
I need to perform an http call to my webservice using a $resource provider.
I'd like to resolve first the data coming from the http call, then inject this result in the controller.
Thinking in terms of OcLazyLoad I just wrote this piece of code.
In…

Silvio Troia
- 1,439
- 19
- 36
1
vote
1 answer
loading modules and factories files using angular ui routing and ocLazyLoad
i', using angular ui routing with ocLazyLoad to load the appendices files according to the choosen stat as the following code shows
my problem is:
when i load a new state and click refresh sometime the factories is not initialized -i think it's…

Hager Aly
- 1,113
- 9
- 25
1
vote
1 answer
Error in karma testing:oc.lazyLoad
I am getting this error in Karma while testing
Error: [$injector:modulerr] Failed to instantiate module *** due to:
Error: [$injector:modulerr] Failed to instantiate module oc.lazyLoad due to:
No module found during bootstrap, unable to init…

Akino
- 303
- 1
- 4
- 16