Skip to content

Problems with $templateCache in oclazyload v.1.0.3  #217

Closed
@webschik

Description

@webschik

Hi!

I'm using ui-router and oclazyload 1.0.2 in my project.

 .state('home.orders', {
            url: '^/orders?{type}',
            reloadOnSearch: false,
            template: '<div data-orders></div>',
            resolve: {
                loadModule: ["$ocLazyLoad", "$injector", ($ocLazyLoad, $injector) => {
                      return $ocLazyLoad.load('myModule');

myModule contains some templates that are used in data-orders directive. After update ocLazyLoad to version 1.0.3 the templates are always loading from server and the next construction

angular.module('myModule').run(['$templateCache', function($templateCache) {
debugger;
....

never runs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions