Questions tagged [oclazyload]

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

Resources

133 questions
2
votes
0 answers

How to use ocLazyLoad in Angular 1.5.7 with ui.router?

I am developing one SPA using Angular 1.5.7 . In that application routing is done with "ui.router". i have a separate folders for each component like Dashboard,Users,Reports and each folder contains its own component and directive, view and service…
2
votes
0 answers

meteor angular lazy load module

We like app can scalable, so we break the app into multiple modules, each module has it owns controllers, services and routes. We have a main module call App. The ideas is we bike child module route into App route, so when a state comes, it knows…
Steve Lam
  • 979
  • 1
  • 17
  • 40
2
votes
2 answers

How can I inject an AngularJS module dependency without declaring it in the dependency array when the module is defined?

Currently the only way that I know of to make module dependencies available is to specify them when a module is declared. e.g.: angular.module("myApp",["myDependentModule"]); This becomes a problem when the app gets large and modules have a lot of…
Vincil Bishop
  • 1,594
  • 17
  • 21
2
votes
1 answer

Cant get angular component router to work with lazyloading of components

Hello fellow stackoverflowers, I've been trying for some time now without success to implement lazy loading of angular components with the new component router (ngComponentRouter). This is the code I used for the configuration of the main…
2
votes
0 answers

How to make `$ocLazyLoad` work with `ui.router` in Angular 1.5?

I am trying to lazy load ($ocLazyLoad) some non-angular libraries (jQuery + css files) through the route (using angular ui.router). In this code snippet I am trying to load the iCheck library, and only use it in my InputsCtrl here's my config: …
Mahmoud Zalt
  • 30,478
  • 7
  • 87
  • 83
2
votes
1 answer

webpack and oclazyload - specify full url for require()

My application's javascript sits on a different domain to the index.html This causes me a problem when using the awesome ocLazyLoad. The request for the lazy loaded module is made from the domain the index.html lives in. eg:- index.html =…
Jimmy
  • 428
  • 5
  • 19
2
votes
2 answers

ocLazyLoad does not load controller, How to fix it?

I'm new to Angular Programming, I found a problem about using ocLazyLoad. First I imported ocLazyLoad to my app. But console occurs these error. Error: [ng:areq] Argument 'ABController' is not a function, got undefined How should i do because i…
tommychoo
  • 611
  • 2
  • 11
  • 20
2
votes
0 answers

Webpack lazy load controller in angular

My directory structure is per module (page): /app app.js /states /home home.module.js home.less home.controller.js home.html This is my home.module.js //import {HomeController} from…
shayy
  • 1,272
  • 2
  • 16
  • 26
2
votes
1 answer

How to configure jsLoader in angular ocLazyLoad latest version.

Earlier versions of angular oclazyload had an option to configure asyncLoader to use webpack bundle loader as its script loader. app.config(['$ocLazyLoadProvider', function ($ocLazyLoadProvider) { $ocLazyLoadProvider.config({ …
Gowrav
  • 627
  • 7
  • 22
1
vote
0 answers

Unable to load angularjs component defined in another module

I have below component: angular.module('dummyApp', []) .component('myComponent', myComponent) function myComponent(){ return { template: ' Hello World!' } } When I tried to load above component in another module using…
Kanti
  • 1,062
  • 1
  • 10
  • 27
1
vote
0 answers

How to lazyload typescript modules with oclazyload in AndularJs 1.5+ and ui-router?

I am trying to lazyload some modules only when a page is visited because my main.js file is too big (3.4MB). I am using AngularJs 1.6 (typescript), webpack, ui-router, and oclazyload. oclazyload works for me when I use it for js libraries:…
1
vote
0 answers

AngularJS , Typescript & Oclazyload cannot recognize scope

I'm changing my existing AngularJS app from (AngularJS + ES5 + Webpack) to (AngularJS + Typescript + Webpack) This is one of my module implementation: login.controller.ts import {ILoginScope} from "./login.scope"; import {LoginViewModel} from…
Redplane
  • 2,971
  • 4
  • 30
  • 59
1
vote
0 answers

Angular v1 - Module's config not called via Lazyload

Lazyload Config in Parent App { name: "lazyload-module", files: ["http://link_to_lazyload_module_js"], reconfig: true, rerun: true }, Module Code to be LazyLoaded ` (function() { var __MODULE_NAME = "lazyload-module"; var app =…
Krishna A
  • 21
  • 4
1
vote
1 answer

Lazy-load MonacoEditor

I have the following code to load MonacoEditor in index.html of my AngularJS website:
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
1
vote
1 answer

Facing issue -oclazyload?

In html: In config.js: .state('contact', { url : '/contact', templateUrl : './contact.html', resolve : { …
1 2
3
8 9