Problem with cache in AngularJS

0

I'm having serious problems with the AngularJS cache.

I have a login screen, in which I load a couple of variables from the controller, depending on the client that accesses, upload a value or another.

The problem is that in local and in my network there is no problem, but when clients access from outside the network it gives a lot of problems.

The problem I see is the following:

It does not load from API or anything, I simply import a javascript file with the names of the variables to be displayed.

I have a master controller in which I import the config.

$.getScript("js/config.js");

Inside this file is where the fixed variables charge

var nombreEmpresaLogin = "Stack";

Once loaded, I show them in the login controller.

$scope.nombreEmpresaLogin = nombreEmpresaLogin;

What I tell you sometimes goes well sometimes gives an error. And it seems an error that it does not load the javascript at the same time as the view.

    
asked by Diego 23.02.2018 в 08:08
source

0 answers