Questions tagged [oclazyload]

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

Resources

133 questions
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,855
  • 10
  • 53
  • 89
2
votes
1 answer

webpack with ocLazyload fails to load both controller and template files

var templatePath = require('../templatePath'); var controllerPath = require('../ControllerPath'); $scope.loadNgModules = function(templatePath, controllerPath) { var files = []; if (templatePath) files.push({ type: 'html', path:…
2
votes
1 answer

Is it possible to take a giant string and load it through a URL path as JavaScript?

I'm trying to make it easy to have an infinitely large single paged AngularJS web application by using OCLazyLoad to only load pages that are requested by the user. And I'd like to load HTML, JS and CSS lazily through a WebSocket rather than…
Matt Andrzejczuk
  • 2,001
  • 9
  • 36
  • 51
2
votes
1 answer

How to use ocLazyLoad resolved file in ui-router resolve property

I want to resolve an api call before view showing it's straightforward by using ui-router resolve property but my resolve property dependent on ocLazyLoad resolved file. So, I getting this error Error: [$injector:unpr] Unknown provider:…
Arjun Kariyadan
  • 489
  • 2
  • 12
2
votes
1 answer

Getting error on AngularJS (controller not registered) using ocLazyLoad + ui-router

I've been trying to make ocLazyLoad work on my project, but I keep getting this Angular error Error: $controller:ctrlreg A controller with this name is not registered The controller with the name 'eventoCtrl' is not registered. NOTICE: I'm also…
2
votes
0 answers

Protracktor vs. ocLazy Load

At the moment I faced an issue when the project I am working with was refactored using ocLazyLoad. From my side, I am an Automation QA working with Protracktor v.5.1.2 . Before implementing above-mentioned feature I was successfully using…
2
votes
1 answer

unable to init ocLazyLoad error while including dependency inside a lazyloaded module

I am trying to load modules progressively. I made a file ‘lazyModule.js’ and I load this module using oclazyLoad. When I define myModule.js dependency in this lazyModule.js, it throws following error on console: No module found during bootstrap,…
jass
  • 343
  • 3
  • 15
2
votes
1 answer

Code splitting/Lazy load with Webpack & ocLazyLoad

I know there are solutions out there to retrieve via javascript using System.import, however I want to use the directive version so we don't have to create a controller for every single template. What I'm trying to achieve is extracting a list of…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
2
votes
0 answers

How to load angular plugins lazy by $ocLazyLoad?

I am developing MEAN stack application. I have used external angular modules in an application. Due to the performance issue, I used the $ocLazyLoad module to load module wise dependency in an application. It works fine with a custom controller,…
laxman
  • 1,338
  • 2
  • 10
  • 27
2
votes
2 answers

How to load css by using requirejs?

This is my requirejs config file. I'm using require js on my angular based project. If I could load css with requirejs I would be able to organize my css files too! I'm new to requirejs concept. Any help appreciated require.config({ paths:{ …
Shabeeb Ck
  • 73
  • 1
  • 8
2
votes
0 answers

Some times oc.lazyLoad not working properly in angularjs?

Am working on the Angularjs project in which there is requirement to load the css and js files on demand, For this purpose i used the oc.lazyLoad library in angularjs, but some times pages loaded fines and some times it produce errors with loaded…
Tarnjeet Singh
  • 846
  • 1
  • 11
  • 30
2
votes
1 answer

How to load a component with ui-router using Webpack, Components and OclazyLoad

I'm currently trying to use OcLazyLoad with angular component and ui-router 1.0.0 and Webpack 1. But I can't figure out how correctly show the html view using the views object with ui-view="MainView" and ui-view="rightMenuView". Secondly, I would…
kevin caradant
  • 181
  • 1
  • 15
2
votes
1 answer

Lazy loading Angular modules with Webpack

I'm trying to get lazy-loaded Angular modules working with Webpack, but I'm having some difficulties. Webpack appears to generate the split point correctly, because I see a 1.bundle.js getting created that contains the code for the child app, but I…
flimsy
  • 204
  • 1
  • 10
2
votes
1 answer

How to dependency injection using ocLazyLoad

I'm using ocLazyLoad and I have some external angular libraries (Like Chart.js and pascalprecht.translate) and I need to lazy load them in some routes, as you know, for the common angular module dependency injection should be like: var angularApp =…
2
votes
2 answers

Make angular Manually go to compile phase

I'm using ocLazyLoad to load my modules on demand in Angular. These modules are totally different and we should check using the server which module should we load. Before Using ocLazyLoad I was loading all concatenated js files of these separate…
mamsoudi
  • 3,999
  • 1
  • 15
  • 24
1
2
3
8 9