This tag is for ocLazyLoad, a solution for lazy loading with AngularJS.
Questions tagged [oclazyload]
133 questions
1
vote
0 answers
Controller not getting executed using ocLazyLoad
I have added below config for controller
$ocLazyLoadProvider.config({
'debug': true, // For debugging 'true/false'
'events': true, // For Event 'true/false'
'modules': [{ // Set modules initially
name : 'usersCtrl', // State1 module
files:…

Pinal
- 41
- 8
1
vote
1 answer
How to lazyload a controller in angular?
In my angularjs app I am trying to lazyload a controller like this:
$scope.loadView4Ctrl = function () {
console.log('loadview4ctrl');
$ocLazyLoad.load({
name: "View4",
files: [
'view4/view4.js'
]
…

bier hier
- 20,970
- 42
- 97
- 166
1
vote
0 answers
ocLazyLoad not allowing to execute jasmine test case
I recently added ocLazyLoad module in my app.
I am executing jasmine unit test case for home.controller.js.
In home.route.js I have following code
app.config(['$stateProvider', 'homeConfig', 'stateHelperServiceProvider',
function…

Prasad
- 11
- 1
1
vote
0 answers
Configuring dynamic state in ui-router
I need to configure dynamic state with dynamic template and url.
.state('s1.s2.:s3',{
url: "/name",
templateUrl: ["$stateParams",function($stateParams) {
return 'path/' + $stateParams.s3 + '.html';
…

Rishi0405
- 354
- 1
- 11
1
vote
1 answer
What is the right way to let the lazyloaded file (*.ts) to be compiled
When lazyLoading script files via oclazyloader for angularjs like:
$stateProvider
.state('tokenReceived', {
url: '/somurl',
//templateUrl: '/views/index.html',
controller: "controllers.loremCtrl",
resolve: {
deps:…

Ben jamin
- 946
- 1
- 6
- 18
1
vote
1 answer
How to handle 404 - resource not found error in ocLazyLoad
I like to know how I could handle resource loading errors in ocLazyLoading. I try to load some resources in the resolve part inside my $stateProvider. There is one file ctrl.js which is available to load. Another file called iam-not-there.js is…

lin
- 17,956
- 4
- 59
- 83
1
vote
0 answers
Lazy Loading a service using oclazyload
This is index.html